private void buttonReadPrivateData_Click(object sender, EventArgs e) { this.Hide(); using (QTTagInventoryForm InvForm = new QTTagInventoryForm(false)) { InvForm.ShowDialog(); } this.Show(); /* accessmode = 1; * * MessageBox.Show("Please select tagid in Public Mode"); * groupBoxPrivate.Enabled = true; * groupBoxPublic.Enabled = false; */ }
public static Thread LaunchForm(QTTagInventoryForm form) { if (form == null) { throw new ArgumentNullException("form"); } inv = form; //if (MsgThread != null) return MsgThread; QTMessageForm.msgThread = new Thread(MsgThreadProc); MsgThread.Name = "MessageForm"; MsgThread.Priority = ThreadPriority.Highest; MsgThread.IsBackground = false; MsgThread.Start(); return(MsgThread); }
public static Thread LaunchControlPanel(QTTagInventoryForm form) { if (form == null) { throw new ArgumentNullException("form"); } if (ControlPanelThread != null) { return(ControlPanelThread); } _mainForm = form; QTControlPanelForm._controlPanelThread = new Thread(ControlPanelThreadProc); ControlPanelThread.Name = "ControlPanel"; ControlPanelThread.Priority = ThreadPriority.Highest; ControlPanelThread.IsBackground = false; ControlPanelThread.Start(); return(ControlPanelThread); }