Example #1
0
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Show();
            this.CloseFlag = true;
            PermissionForm permissionForm = new PermissionForm();

            if (permissionForm.ShowDialog() == DialogResult.OK)
            {
                this.Close();
            }
        }
Example #2
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PermissionForm permissionForm = new PermissionForm();

            if (permissionForm.ShowDialog() == DialogResult.OK)
            {
                SettingsForm settingsForm = new SettingsForm();
                settingsForm.ShowDialog();

                if (settingsForm.isSuccessful)
                {
                    TerminalLogger.Instance.Write("[SETTINGS] Settings has been changed");
                    if (_terminalmanagerBackgroundWorker.IsBusy || _statuscheckerBackgroundWorker.IsBusy)
                    {
                        MessageBox.Show(
                            "Settings successfully saved! Terminal manager checking is currently in progress. Restart Application to apply changes after checking.");
                    }
                    else
                    {
                        RestartFlag = true;
                    }
                }
            }
        }
Example #3
0
        private void btn_permission_Click(object sender, EventArgs e)
        {
            PermissionForm fr = new PermissionForm();

            fr.ShowDialog();
        }