private void CreateOnClick(object sender, RoutedEventArgs e) { CreationWindow popup = new CreationWindow(businessLogic); popup.ShowDialog(); popup.Closing += PopupClosed; }
private void UpdateOnClick(object sender, RoutedEventArgs e) { var item = (InputModel)DataTable.SelectedItem; if (item != null) { CreationWindow popup = new CreationWindow(businessLogic, (InputModel)DataTable.SelectedItem); popup.ShowDialog(); popup.Closing += PopupClosed; } }