private void btnBack_Click(object sender, EventArgs e) { FrmConfig formConf = new FrmConfig(); this.Visible = false; formConf.ShowDialog(); this.Close(); }
private void menuItemExit_Click(object sender, EventArgs e) { var ans = MessageBox.Show("Are you sure you want to exit the process manager?", "Confirm Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Stop); if(ans == DialogResult.Yes) { FrmConfig formConf = new FrmConfig(); this.Visible = false; formConf.ShowDialog(); this.Close(); } else { return; } }