Пример #1
0
 private void Food_Pause_Click(object sender, EventArgs e) //Food
 {
     if (FTS == 1)
     {
         Timer_Food.Start();
         Food_Start.Visible = false;
         Food_panel.Enabled = false;
     }
     if (FTS == 0)
     {
         Timer_Food.Stop();
         FTS = 1;
         Food_Start.Visible = true;
         Food_panel.Enabled = true;
     }
 }
Пример #2
0
 private void Food_Start_Click(object sender, EventArgs e) //Food
 {
     if (Cron_rb.Checked == true)
     {
         sF = 3;
         mF = 120;
     }
     if (Other_rb.Checked == true)
     {
         sF = 3;
         mF = 30;
     }
     if (TestF_rb.Checked == true) //Test
     {
         sF = 5;
         mF = 0;
     }
     Timer_Food.Start();
     Food_Start.Visible = false;
     Food_panel.Enabled = false;
 }