public static ui_main_panel GetInstance(User _user) { if (instance == null) { instance = new ui_main_panel(_user); } return(instance); }
private void ui_main_panel_FormClosing(object sender, FormClosingEventArgs e) { instance = null; ui_login.GetInstance().Show(); }