private void BtnSimulate_Click(object sender, EventArgs e) { BtnSimulate.Enabled = !BtnSimulate.Enabled; // Toggle BtnPause.Enabled = !BtnPause.Enabled; BtnStop.Enabled = !BtnStop.Enabled; TmrArrival.Start(); // Arrival of Parts Started TmrCNC01.Start(); // Arrival of Parts Started }
private void BtnPause_Click(object sender, EventArgs e) { BtnPause.Enabled = !BtnPause.Enabled; BtnSimulate.Enabled = !BtnSimulate.Enabled; BtnStop.Enabled = !BtnStop.Enabled; TmrArrival.Stop(); TmrCNC01.Stop(); }
private void BtnStop_Click(object sender, EventArgs e) { BtnStop.Enabled = !BtnStop.Enabled; BtnSimulate.Enabled = !BtnSimulate.Enabled; TmrArrival.Stop(); TmrCNC01.Stop(); CmbWaitingArea01.Items.Clear(); PartsArrived = 0; PartsDelivered = 0; PartsInCombo = 0; }