Example #1
0
        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("Неправильно введёно 'Имя' или 'Пароль'.");
            }
        }
Example #2
0
        private void openCarForm()
        {
            AddNewCarForm carForm = new AddNewCarForm();

            carForm.Show();
        }