Пример #1
0
 private void MenuAddCopy_Click(object sender, RoutedEventArgs e)
 {
     WindowCopy win = new WindowCopy(xml);
     if (win != null)
     {
         win.Owner = this;
         win.ShowDialog();
     }
 }
Пример #2
0
 private void editCopyButton_Click(object sender, RoutedEventArgs e)
 {
     if (copyGrid.SelectedItem != null)
     {
         int num = Int32.Parse(((TextBlock)copyGrid.Columns[1].GetCellContent(copyGrid.SelectedItem)).Text);
         string tempType = typeBox.SelectedItem.ToString();
         WindowCopy win = new WindowCopy(xml, tempType, num);
         win.Owner = this;
         win.ShowDialog();
         updateCopyGrid();
     }
 }