Ejemplo n.º 1
0
 private void EditOverpicing()
 {
     int id = 0;
     overpricing b = null;
     DataGrid dataGrid = dgOverpricing;
     if (dataGrid.SelectedItem != null)
     {
         object sel = dataGrid.SelectedItem;
         b = (overpricing)sel;
         id = b.id;
     }
     if (id > 0)
     {
         OverpricingEditView v = new OverpricingEditView(b.id);
         v.ShowDialog();
         LoadOverpricings();
     }
 }
Ejemplo n.º 2
0
 private void CreateOverpricing()
 {
     // вызвать диалог добавление прихода
     OverpricingEditView v = new OverpricingEditView();
     v.ShowDialog();
     LoadOverpricings();
 }