Example #1
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            AddDelivery addDelivery = new AddDelivery();

            addDelivery.ShowDialog();
            tsbSave_Click(sender, e);
        }
Example #2
0
 private void tsbEdit_Click(object sender, EventArgs e)
 {
     if (v_DELIVERY_TABLEDataGridView.CurrentRow != null)
     {
         DataGridViewRow row         = v_DELIVERY_TABLEDataGridView.CurrentRow;
         long            deliveryID  = (long)row.Cells[0].Value;
         long            providerID  = (long)row.Cells[1].Value;
         long            autoID      = (long)row.Cells[2].Value;
         AddDelivery     addDelivery = new AddDelivery(deliveryID,
                                                       providerID,
                                                       autoID,
                                                       (DateTime)row.Cells[7].Value,
                                                       (Decimal)row.Cells[8].Value);
         addDelivery.Text = "Редактирование поставки автомобиля";
         addDelivery.ShowDialog();
         tsbSave_Click(sender, e);
     }
 }