private void btnOrdAdd_Click(object sender, RoutedEventArgs e) { GlobalVars.OrderToEdit = null; Window w = new OrderCreate(); w.ShowDialog(); btnRefreshOrd_Click(sender, e); }
private void btnOrdEdit_Click(object sender, RoutedEventArgs e) { GlobalVars.OrderToEdit = GlobalVars.OrdersList[dgOrd.SelectedIndex]; Window w = new OrderCreate(); w.ShowDialog(); btnRefreshOrd_Click(sender, e); }