public main_form() { InitializeComponent(); main_mngr = new main_contr(); var password = new password_form(give_access); password.Show(); }
private void close(object sender, EventArgs e) { Properties.Settings settings = new Properties.Settings(); string password = settings.Пароль; string input = text_box.Text; if (password != input && exit_flag != true) { var pass = new password_form(access); pass.Show(); } }