2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Windows.Forms;
9 namespace SeciUserInterface.Dialogs.VIs
14 public List<String> ToRemove {
get;
private set; }
16 public RemoveVI(Seci.SerialisableList<Seci.LabView.LabViewPanelInfo> viList)
18 InitializeComponent();
19 ToRemove =
new List<string>();
26 for (
int i = 0; i < _viList.Count; ++i)
28 lstVIs.Items.Add(_viList[i].FilePath);
34 if (lstVIs.SelectedIndex != -1)
36 lstToRemove.Items.Add(lstVIs.SelectedItem);
37 lstVIs.Items.RemoveAt(lstVIs.SelectedIndex);
43 if (lstToRemove.SelectedIndex != -1)
45 lstVIs.Items.Add(lstToRemove.SelectedItem);
46 lstToRemove.Items.RemoveAt(lstToRemove.SelectedIndex);
52 if (lstToRemove.Items.Count > 0)
55 for (
int i = 0; i < lstToRemove.Items.Count; ++i)
57 ToRemove.Add(lstToRemove.Items[i].ToString());
61 DialogResult = DialogResult.OK;
void btnRemove_Click(object sender, EventArgs e)
void RemoveVI_Load(object sender, EventArgs e)
void btnUndo_Click(object sender, EventArgs e)
RemoveVI(Seci.SerialisableList< Seci.LabView.LabViewPanelInfo > viList)
This class contains all the information about a LabVIEW VI that needs to be saved in the configuratio...
Seci.SerialisableList< Seci.LabView.LabViewPanelInfo > _viList
void btnOK_Click(object sender, EventArgs e)