Exemple #1
0
        private void btaddDriver_Click(object sender, EventArgs e)
        {
            MethodsManager m = new MethodsManager(this);

            try
            {
                if ((tbdrivername.Text != "") && (tbdriversecond.Text != "") && (tbdriverthird.Text != "") && (tbpasspot.Text != "") && (tbidentity.Text != "") && (tbidentity.Text != ""))
                {
                    m.AddDriver();
                }
                else
                {
                    MessageBox.Show("Введите данные");
                }
                dgvman.Rows.Clear();
                dgvman.Rows.Clear();

                m.LoadDrivers();
                m.ShowDrivers();
            }
            catch (Exception ex)
            {
                MessageBox.Show("ИНН равен 10 символов");
            }
        }