コード例 #1
0
 private void btnOrdAdd_Click(object sender, RoutedEventArgs e)
 {
     GlobalVars.OrderToEdit = null;
     Window w = new OrderCreate();
     w.ShowDialog();
     btnRefreshOrd_Click(sender, e);
 }
コード例 #2
0
 private void btnOrdEdit_Click(object sender, RoutedEventArgs e)
 {
     GlobalVars.OrderToEdit = GlobalVars.OrdersList[dgOrd.SelectedIndex];
     Window w = new OrderCreate();
     w.ShowDialog();
     btnRefreshOrd_Click(sender, e);
 }