private void buttonTaskStop_Click(object sender, EventArgs e) { //Выключил задачи TimerJob.Stop(); CurrentTask = 0; ModifyColor(); playSimpleSound(0); }
private void buttonSBROS_Click(object sender, EventArgs e) { if (TaskTime1 + TaskTime2 + TaskTime3 == 0) { Task1.Text = ""; Task2.Text = ""; Task3.Text = ""; } else { //Выключил задачи TimerJob.Stop(); CurrentTask = 0; TaskTime1 = 0; TaskTime2 = 0; TaskTime3 = 0; Modify = 5 * 60; } ModifyColor(); }