private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Auth loginForm = new Auth(); loginForm.ShowDialog(); if (loginForm.Enabled) { AddNewCarForm carForm = new AddNewCarForm(); carForm.Show(); } else { MessageBox.Show("Неправильно введёно 'Имя' или 'Пароль'."); } }
private void openCarForm() { AddNewCarForm carForm = new AddNewCarForm(); carForm.Show(); }