Пример #1
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();
     }
 }
Пример #2
0
 private void MenuAddCopy_Click(object sender, RoutedEventArgs e)
 {
     WindowCopy win = new WindowCopy(xml);
     if (win != null)
     {
         win.Owner = this;
         win.ShowDialog();
     }
 }
Пример #3
0
 private void addCopyButton_Click(object sender, RoutedEventArgs e)
 {
     WindowCopy win = null;
     if (typeBox.SelectedItem != null) win = new WindowCopy(xml, typeBox.SelectedItem.ToString());
     else win = new WindowCopy(xml);
     win.Owner = this;
     win.ShowDialog();
     updateCopyGrid();
 }