private void button2_Click(object sender, EventArgs e) { Global.WorkVar.tag_IsExit = 0; Global.WorkVar.tag_isFangDaiJieChu = false; if (Global.WorkVar.tag_ResetState != 2) { MessageBoxLog.Show("请先复位!"); return; } if (tag_StationModule == worker._Config.tag_safeStationModule) { MessageBoxLog.Show("此工位为安全配置工位,不能运行"); return; } if (tag_StationModule == null) { MessageBoxLog.Show("请选择工位"); return; } tag_stationName = tag_StationModule.strStationName; tag_PointAggregate = GetIndexPointAggregate(); if (!checkBox3_statioOpen.Checked) { WaitUI wait = new WaitUI(pointRun, pointRunEnd, tag_PointAggregate); wait.ShowDialog(); } else { WaitUI wait = new WaitUI(pointRun2, pointRunEnd, tag_PointAggregate); wait.ShowDialog(); } }
private void button_Exe_Click(object sender, EventArgs e) { if (!Work.IsMove(0)) { return; } Global.WorkVar.tag_IsExit = 0; Global.WorkVar.tag_isFangDaiJieChu = false; WaitUI wait = new WaitUI(pointRun, _PointSet); wait.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Global.WorkVar.tag_IsExit = 0; Global.WorkVar.tag_isFangDaiJieChu = false; if (Global.WorkVar.tag_ResetState != 2) { MessageBoxLog.Show("请先复位!"); return; } if (string.IsNullOrEmpty(CBStnChioce.Text)) { MessageBoxLog.Show("请选择工站名"); return; } if (tag_StationModule == worker._Config.tag_safeStationModule) { MessageBoxLog.Show("此工位为安全配置工位,不能运行"); return; } if (Global.WorkVar.tag_workState == 1) { MessageBoxLog.Show("工作中,不能运行"); return; } object station = (object)worker.GetStation(tag_StationModule.strStationName); if (station == null) { WaitUI wait = new WaitUI(StationRunThread, tag_StationModule.strStationName); wait.ShowDialog(); } else { WaitUI wait = new WaitUI(StationRunThreadStep, station); wait.ShowDialog(); } }