private void Change_Account_Click(object sender, EventArgs e) { User.loggedin = false; Auth_Form form = new Auth_Form(); form.ShowDialog(); if (User.loggedin) { initaccount(); } }
static void Main() { string login; Auth_Form authform = new Auth_Form(); authform.ShowDialog(); if (User.loggedin == false) { return; } Account_Form account = new Account_Form(); account.ShowDialog(); }