private void Sotrudniki_FormClosing(object sender, FormClosingEventArgs e) { GlavMenu glav = new GlavMenu(); glav.Show(); Hide(); }
public void button2_Click(object sender, EventArgs e) { // Perem perem = new Perem(); Program.Log = textBox1.Text; auth.FunAuth(textBox1.Text, textBox2.Text); if (Program.acc == 1 && Program.System_Access == 1) { GlavMenu glav = new GlavMenu(); glav.Show(); glav.tsslCon.Text = Registry_Class.DS + " - " + Registry_Class.IC; } else { if (Program.acc == 1 && Program.System_Access == 0) { MessageBox.Show("Ваш профиль заблокирован!!!"); } } Visible = false; }