Beispiel #1
0
 private void CreateSpareMovementIn()
 {
     // вызвать диалог добавление прихода
     SpareIncomeEditView v = new SpareIncomeEditView();
     v._id = -1;
     v.ShowDialog();
     LoadSpareIncome();
 }
Beispiel #2
0
 private void EditSelectedSpareMovementIn()
 {
     int id = 0;
     SpareIncomeView b = null;
     DataGrid dataGrid = dgSpareMovementIn;
     if (dataGrid.SelectedItem != null)
     {
         object sel = dataGrid.SelectedItem;
         b = (SpareIncomeView)sel;
         id = b.id;
     }
     if (id > 0)
     {
         SpareIncomeEditView v = new SpareIncomeEditView();
         v._id = b.id;
         v.ShowDialog();
         LoadSpareIncome();
     }
 }
 private void btnIncome_Click(object sender, RoutedEventArgs e)
 {
     SpareIncomeEditView v1 = new SpareIncomeEditView();
     this.Close();
     v1.ShowDialog();
 }