private void btn_inv_Click(object sender, EventArgs e) { if (Program.appSetting.tagGroup.selected != CSLibrary.Constants.Selected.ALL) { MessageBox.Show("Warning : MASK IS SET !!!"); } this.Hide(); using (TagInventoryForm InvForm = new TagInventoryForm(false)) //using (TagInventoryWithSyncQueue InvForm = new TagInventoryWithSyncQueue()) { InvForm.ShowDialog(); } UpdatePower(); this.Show(); }
public static Thread LaunchForm(TagInventoryForm form) { if (form == null) { throw new ArgumentNullException("form"); } inv = form; //if (MsgThread != null) return MsgThread; MessageForm.msgThread = new Thread(MsgThreadProc); MsgThread.Name = "MessageForm"; MsgThread.Priority = ThreadPriority.Highest; MsgThread.IsBackground = false; MsgThread.Start(); return(MsgThread); }
public static Thread LaunchControlPanel(TagInventoryForm form) { if (form == null) { throw new ArgumentNullException("form"); } if (ControlPanelThread != null) { return(ControlPanelThread); } _mainForm = form; ControlPanelForm._controlPanelThread = new Thread(ControlPanelThreadProc); ControlPanelThread.Name = "ControlPanel"; ControlPanelThread.Priority = ThreadPriority.Highest; ControlPanelThread.IsBackground = false; ControlPanelThread.Start(); return(ControlPanelThread); }