Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MainDB main = new MainDB();

            main.AddVenicle(textBox1.Text, (int)comboBox1.SelectedValue, (int)comboBox2.SelectedValue, textBox2.Text);
            this.vecAllTableAdapter.Fill(this.mainDataSet.vecAll);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            MainDB main = new MainDB();

            main.AddOil(textBox1.Text);
            this.oilTableAdapter.Fill(this.mainDataSet.oil);
        }
Exemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(String.Format("Добавить водителя\nИмя {0}\nФамилия {1}\nДень рождения {2}\nНомер паспорта {3}", textBox1.Text, textBox2.Text, dateTimePicker1.Value.Date, textBox4.Text), "", MessageBoxButtons.OKCancel) == DialogResult.OK)
     {
         MainDB db = new MainDB();
         db.AddVod(textBox1.Text, textBox2.Text, dateTimePicker1.Value.Date, textBox4.Text);
         this.voditelTableAdapter.Fill(this.mainDataSet.voditel);
     }
 }
Exemplo n.º 4
0
        private void Button1_Click(object sender, EventArgs e)
        {
            MainDB db = new MainDB();

            switch (db.authUser(textBox1.Text, textBox2.Text))
            {
            case 0:

                break;

            case 1:
                MainForm main = new MainForm();
                main.Owner = this;
                main.Show();
                this.Hide();
                break;

            case -1:

                break;
            }
        }