Beispiel #1
0
        private void btnRefreshData_Click(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.Username == string.Empty || Properties.Settings.Default.Password == string.Empty)
            {
                frmSettings settings = new frmSettings();
                settings.ShowDialog();
                if (settings.DialogResult == DialogResult.Cancel)
                {
                    return;
                }
            }

            if (cbHeadless.Checked)
            {
                RiverLinkLogic.runHeadless = true;
            }
            else
            {
                RiverLinkLogic.runHeadless = false;
            }

            if (path == null)
            {
                frmChrome frmC = new frmChrome();
                if (frmC.ShowDialog() == DialogResult.Cancel)
                {
                    Application.Exit();
                }
                else
                {
                    checkChrome();
                }
            }

            frmProgress frm = new frmProgress();

            if (frm.ShowDialog() == DialogResult.Cancel)
            {
                MessageBox.Show("User Cancelled");
            }
            else
            {
                MessageBox.Show("Completed");
            }
        }
Beispiel #2
0
        private void enterUsernamePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSettings settings = new frmSettings();

            settings.ShowDialog();
        }