private void FormUsers_FormClosing(object sender, FormClosingEventArgs e) { authForm authForm = new authForm(); mainForm mainForm = new mainForm(); if (authForm.role == 1) { authForm.Show(); } else { mainForm.Show(); } }
private void mainForm_FormClosed(object sender, FormClosedEventArgs e) { authForm authForm = new authForm(); authForm.Show(); }