private void Form1_Load(object sender, EventArgs e) { var fabout = new FormAboutProgram(); fabout.ShowDialog(); var signInForm = new FormSignIn(); signInForm.ShowDialog(); if (signInForm.UserNameIfSuccess == null) { Close(); } else { Users.SetCurrentUser(signInForm.UserNameIfSuccess); LabelUsername.Text = Users.CurrentUserName; IfAdmin(); } TabControlMenu.SelectedIndex = 0; }
private void BtAbout_Click(object sender, EventArgs e) { var form = new FormAboutProgram(); form.Show(); }