private void mainLoad(object sender, EventArgs e) { using (var loginDialogue = new authForm()) { if(loginDialogue.ShowDialog() == DialogResult.Cancel) Application.Exit(); } }
public authController(authForm myForm) { this.myForm = myForm; }