Ejemplo n.º 1
0
 private void ModifyButton_Click(object sender, RoutedEventArgs e)
 {
     var wnd = new GraphicChipWindow();
     wnd.Closed += DialogClosed;
     wnd.DataContext = this.DataGrid.SelectedItem as GraphicChip;
     wnd.Show();
 }
Ejemplo n.º 2
0
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     var wnd = new GraphicChipWindow();
     wnd.Closed += DialogClosed;
     wnd.DataContext = new GraphicChip();
     graphicChipDomainDataSource.DataView.Add(wnd.DataContext);
     wnd.Show();
 }