private void btnExit_Click(object sender, EventArgs e)
        {
            DialogResult exit = new DialogResult();

            exit = MessageBox.Show(resourceManager.GetString("msgContinue", GlobalVariables.uiLanguage), resourceManager.GetString("msgWarning", GlobalVariables.uiLanguage), MessageBoxButtons.YesNo, MessageBoxIcon.Information);
            if (exit == DialogResult.Yes)
            {
                Login_Page login_page = new Login_Page();
                this.Hide();
                login_page.Show();
            }
        }
Пример #2
0
        private void btnExit_Click(object sender, EventArgs e)
        {
            DialogResult exit = new DialogResult();

            exit = MessageBox.Show(resourceManager.GetString("msgContinue", GlobalVariables.uiLanguage), resourceManager.GetString("msgWarning", GlobalVariables.uiLanguage), MessageBoxButtons.YesNo, MessageBoxIcon.Information);
            if (exit == DialogResult.Yes)
            {
                try
                {
                    if (GlobalVariables.neulogProcess.HasExited == false)
                    {
                        GlobalVariables.neulogProcess.Kill();
                    }
                }
                catch (Exception)
                {
                }
                try
                {
                    if (GlobalVariables.sessionProcess.HasExited == false)
                    {
                        GlobalVariables.sessionProcess = applicationControl1.getStartedProcess();
                        var process = Process.GetProcesses().Where(pr => pr.ProcessName.Contains(GlobalVariables.sessionProcess.ProcessName));
                        foreach (var procs in process)
                        {
                            procs.Kill();
                        }
                    }
                }
                catch (Exception)
                {
                }
                Login_Page login_page = new Login_Page();
                this.Hide();
                login_page.Show();
            }
        }
Пример #3
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     Login_Page login = new Login_Page();
     this.Hide();
     login.Show();
 }