using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestWindowFormDevils
{
    public partial class Form1 : Form
    {
        int time = 0;
        public Form1()
        {
            InitializeComponent();
        }


        private void pushButton_Click(object sender, EventArgs e)
        {
            if (timer.Enabled == true)
            {
                timer.Stop();
            }
            else timer.Start();
        }

        private void timer_Tick(object sender, EventArgs e)
        {
            time++;
            string str = timerLabel.Text;
            string strSub = str.Substring(1) + str[0];
            timerLabel.Text = strSub;
            label2.Text = time + "";
        }

    


    }
}





데블스캠프2012
Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2012/넷째날/묻지마Csharp/Mission3/김준석
last modified 2021-02-07 05:29:15