Пример #1
0
 //edit packets button
 private void button1_Click(object sender, EventArgs e)
 {
     if (FilterList.SelectedIndices.Count > 0)
     {
         foreach (Object selecteditem in FilterList.SelectedItems)
         {
             Windows.XMLEditMessage newMDIChild = new Windows.XMLEditMessage(selecteditem as String);
             newMDIChild.MdiParent = MainWindow.ActiveForm;
             newMDIChild.Show();
         }
     }
     else
         MainWindow.ErrorDisplayString("Error Editing Vehicle: no vehicle selected");
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e) //edit packets button
 {
     if (FilterList.SelectedIndices.Count > 0)
     {
         foreach (Object selecteditem in FilterList.SelectedItems)
         {
             Windows.XMLEditMessage newMDIChild = new Windows.XMLEditMessage(selecteditem as String);
             newMDIChild.MdiParent = MainWindow.ActiveForm;
             newMDIChild.Show();
         }
     }
     else
     {
         MainWindow.ErrorDisplayString("Error Editing Vehicle: no vehicle selected");
     }
 }