private void timer_mainTimer_Tick(object sender, EventArgs e) { timer_mainTimer.Stop(); //engineService.RunEngine(); engineService.test(); timer_mainTimer.Start(); }
private void btn_Start_Click(object sender, EventArgs e) { if (this.Text == "START") { this.Text = "STOP"; engineService.test(); } else { this.Text = "START"; } }
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(); } }