Exemple #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     D.Date               = dateTimePicker1.Value;
     D.PurchaseDate       = dateTimePicker1.Value;
     D.WarantyDate        = numericUpDown1.Value;
     D.Number             = textBox2.Text;
     D.Room               = textBox3.Text;
     D.DepartmentID       = (int)comboBox3.SelectedValue;
     D.Username           = textBox6.Text;
     D.VendorID           = (int)comboBox2.SelectedValue;
     D.Description        = textBox4.Text;
     D.ExtendedInfo       = textBox5.Text;
     D.Name               = textBox1.Text;
     D.SimpleDeviceTypeID = (int)comboBox1.SelectedValue;
     D.AcceptChanges();
     this.Close();
     this.DialogResult = System.Windows.Forms.DialogResult.OK;
 }