private void Edit(MultiSelector tempGrid) { if (tempGrid.SelectedItems != null && tempGrid.SelectedItems.Count == 1) { var item = tempGrid.SelectedItem as UserCard; if (item != null) { var packDialog = new AddEditCard(item); packDialog.Closed += (s, j) => Refresh(); packDialog.ShowDialog(); } } }
private void EditMenuItemClick(object sender, RoutedEventArgs e) { var item = MainTable.SelectedItem as UserCard; if (item != null) { var dialog = new AddEditCard(item); dialog.Closed += (s, j) => Refresh(); dialog.ShowDialog(); } }
private void AddMenuItemClick(object sender, RoutedEventArgs e) { var dialog = new AddEditCard(); dialog.ShowDialog(); }