コード例 #1
0
        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
        }
コード例 #2
0
        private void BtnPause_Click(object sender, EventArgs e)
        {
            BtnPause.Enabled    = !BtnPause.Enabled;
            BtnSimulate.Enabled = !BtnSimulate.Enabled;
            BtnStop.Enabled     = !BtnStop.Enabled;

            TmrArrival.Stop();
            TmrCNC01.Stop();
        }
コード例 #3
0
        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;
        }