Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
 private void AddMenuItemClick(object sender, RoutedEventArgs e)
 {
     var dialog = new AddEditCard();
     dialog.ShowDialog();
 }