예제 #1
0
 private void timer_mainTimer_Tick(object sender, EventArgs e)
 {
     timer_mainTimer.Stop();
     //engineService.RunEngine();
     engineService.test();
     timer_mainTimer.Start();
 }
예제 #2
0
        private void btn_Start_Click(object sender, EventArgs e)
        {
            if (this.Text == "START")
            {
                this.Text = "STOP";

                engineService.test();
            }
            else
            {
                this.Text = "START";
            }
        }
예제 #3
0
 private void btn_Start_Click(object sender, EventArgs e)
 {
     engineService.test();
     if (btn_Start.Text == "START")
     {
         btn_Start.Text = "STOP";
         timer_mainTimer.Start();
     }
     else
     {
         btn_Start.Text = "START";
         timer_mainTimer.Stop();
     }
 }