//--------------------------------------КНОПОЧКА ВХОДА В САМУ ПРОГРАММУ--------------------------// private void Input_Click(object sender, EventArgs e) { bool result = false; try { result = service.Authorize(UserName.Text, UserPassword.Text); } catch (Exception) { MessageBox.Show("Неверный логин или пароль!", "", MessageBoxButtons.OK, MessageBoxIcon.Error); UserName.Clear(); UserPassword.Clear(); result = false; } if (result) { this.Hide(); FormChooser frm2 = new FormChooser(this); frm2.Show(); } }
public FormKodOborudov(FormChooser fc1) { InitializeComponent(); formtoopen = fc1; //проверка fc.BackColor = Color.Yellow; }
public ImportExport(FormChooser fc2) { InitializeComponent(); formtoopen = fc2; _import = new ImportService(); }
public Settings(FormChooser fc3) { InitializeComponent(); formtoopen = fc3; // fc3.BackColor = Color.Green; }