private void FromUSB_Click(object sender, EventArgs e)
        {
            RoboSep_UserSelect myUserSelect = new RoboSep_UserSelect();
            bool GraphicCreated             = myUserSelect.LoadUSBPicture(UserName);

            if (GraphicCreated)
            {
                this.DialogResult = DialogResult.OK;
                this.Hide();
            }
        }
Пример #2
0
        private void button_UserSelect_Click(object sender, EventArgs e)
        {
            // clear current run samples page
            ClearRunSamples();
            RoboSep_UserConsole.getInstance().SuspendLayout();
            RoboSep_UserSelect usrSelect = new RoboSep_UserSelect();

            usrSelect.Location = new Point(0, 0);
            RoboSep_UserConsole.getInstance().Controls.Add(usrSelect);
            RoboSep_UserConsole.ctrlCurrentUserControl = usrSelect;
            closeHomeWindow();

            // LOG
            string logMSG = "User Selection button clicked";

            //GUI_Controls.uiLog.LOG(this, "hex_logs_Click", GUI_Controls.uiLog.LogLevel.EVENTS, logMSG);

            LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG);
        }
Пример #3
0
        private void hex_Users_Click(object sender, EventArgs e)
        {
            // check if any protocols are selected
            int[] CurrentQuadrants = RoboSep_RunSamples.getInstance().iSelectedProtocols;
            if (CurrentQuadrants.Length > 0)
            {
                // prompt if user is sure they want to switch users if
                // all protocol selections are removed
                string           msg    = LanguageINI.GetString("msgChangeUser");
                RoboMessagePanel prompt = new RoboMessagePanel(RoboSep_UserConsole.getInstance(), MessageIcon.MBICON_WARNING, msg,
                                                               LanguageINI.GetString("headerChangeUsr"), LanguageINI.GetString("Ok"), LanguageINI.GetString("Cancel"));
                RoboSep_UserConsole.showOverlay();
                prompt.ShowDialog();
                RoboSep_UserConsole.hideOverlay();

                if (prompt.DialogResult != DialogResult.OK)
                {
                    prompt.Dispose();
                    return;
                }
                prompt.Dispose();
            }

            // remove all currently selected protocols
            for (int i = 0; i < CurrentQuadrants.Length; i++)
            {
                RoboSep_RunSamples.getInstance().CancelQuadrant(CurrentQuadrants[i]);
            }

            // change to robosep user select window
            RoboSep_UserConsole.getInstance().SuspendLayout();
            RoboSep_UserSelect usrSelect = new RoboSep_UserSelect();

            RoboSep_UserConsole.getInstance().Controls.Add(usrSelect);
            RoboSep_UserConsole.ctrlCurrentUserControl = usrSelect;

            usrSelect.BringToFront();
            usrSelect.Focus();
        }