Exemplo n.º 1
0
        internal void UpdateWindow(string username, string fullName, ExaminationMode examination)
        {
            if (this.InvokeRequired)
            {
                UpdateWindowDelegate d = new UpdateWindowDelegate(UpdateWindow);
                this.Invoke(d, new object[] { username, fullName, examination });
            }
            else
            {
                if (examination.Enabled && examination.BrowserMode)
                {
                    ExaminationBrowser browser = new ExaminationBrowser(username, fullName, examination);
                    browser.Show();
                    this.Hide();
                    return;
                }
                else if (examination.Enabled)
                {
                    machineNameLabel.Text = "Examination Mode";
                    examination.Start();
                }
                else
                {
                    machineNameLabel.Text = Environment.MachineName;
                }

                usernameLabel.Text = username;
                fullNameLabel.Text = fullName;
                Opacity            = 100;
                alterSizeLocation();
            }
        }
 private void ExaminationBrowser_Load(object sender, EventArgs e)
 {
     _examination.Start();
     browserPanel.Controls.Add(ChromeBrowser);
     ChromeBrowser.Dock = DockStyle.Fill;
 }