Exemple #1
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            AddAuto addAuto = new AddAuto();

            addAuto.ShowDialog();
            aUTOBindingNavigatorSaveItem_Click(sender, e);
            toolStripButton1_Click(sender, e);
        }
Exemple #2
0
 private void tsbEdit_Click(object sender, EventArgs e)
 {
     if (v_AUTODataGridView.CurrentRow != null)
     {
         DataGridViewRow row     = v_AUTODataGridView.CurrentRow;
         long            mark    = (long)mODELTableAdapter.GetMarkID((long)row.Cells[1].Value);
         AddAuto         addAuto = new AddAuto((long)row.Cells[0].Value,
                                               row.Cells[7].Value.ToString(),
                                               (long)row.Cells[2].Value,
                                               mark,
                                               (long)row.Cells[1].Value,
                                               (long)row.Cells[3].Value,
                                               row.Cells[14].Value.ToString());
         addAuto.Text = "Редактирование автомобиля";
         addAuto.ShowDialog();
         aUTOBindingNavigatorSaveItem_Click(sender, e);
         toolStripButton1_Click(sender, e);
     }
 }