private void button7_Click(object sender, EventArgs e)
        {
            if (Program.appSetting.tagGroup.selected != CSLibrary.Constants.Selected.ALL)
            {
                MessageBox.Show("Warning : MASK IS SET !!!");
            }

            this.Hide();
            using (TagInventoryWithGpioForm InvForm = new TagInventoryWithGpioForm(false))
            {
                InvForm.ShowDialog();
            }
            this.Show();
        }
Example #2
0
        public static Thread LaunchForm(TagInventoryWithGpioForm form)
        {
            if (form == null)
            {
                throw new ArgumentNullException("form");
            }

            inv = form;

            //if (MsgThread != null) return MsgThread;

            MessageWithGpioForm.msgThread = new Thread(MsgThreadProc);
            MsgThread.Name         = "MessageForm";
            MsgThread.Priority     = ThreadPriority.Highest;
            MsgThread.IsBackground = false;
            MsgThread.Start();
            return(MsgThread);
        }
Example #3
0
        public static Thread LaunchControlPanel(TagInventoryWithGpioForm form)
        {
            if (form == null)
            {
                throw new ArgumentNullException("form");
            }

            if (ControlPanelThread != null)
            {
                return(ControlPanelThread);
            }

            _mainForm = form;

            ControlPanelWithGpioForm._controlPanelThread = new Thread(ControlPanelThreadProc);
            ControlPanelThread.Name         = "ControlPanel";
            ControlPanelThread.Priority     = ThreadPriority.Highest;
            ControlPanelThread.IsBackground = false;
            ControlPanelThread.Start();
            return(ControlPanelThread);
        }