Ejemplo n.º 1
0
 private void MenuEditTechbook_Click(object sender, RoutedEventArgs e)
 {
     int index = typeBox.SelectedIndex;
     if (index != -1)
     {
         string typeName = typeBox.SelectedItem.ToString();
         WindowTechbook win = new WindowTechbook(xml, typeName);
         win.Owner = this;
         win.ShowDialog();
         typeBox.SelectedIndex = index;
     }
 }
Ejemplo n.º 2
0
 private void typeBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     int index = typeBox.SelectedIndex;
     if (index != -1)
     {
         string typeName = typeBox.SelectedItem.ToString();
         WindowTechbook win = new WindowTechbook(xml, typeName);
         win.Owner = this;
         win.ShowDialog();
         typeBox.SelectedIndex = index;
     }
 }
Ejemplo n.º 3
0
 private void MenuAddTechbook_Click(object sender, RoutedEventArgs e)
 {
     WindowTechbook win = new WindowTechbook(xml);
     win.Owner = this;
     if ((bool)win.ShowDialog())
     {
         typeBox.SelectedItem = xml.AddedTechbook;
     }
 }