//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"); }
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"); } }