2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Windows.Forms;
10 namespace SeciUserInterface.Dialogs.SubConfigs
14 public List<String> toRemove =
new List<String>();
18 InitializeComponent();
23 List<String> comps = Seci.Managers.ComponentMgr.GetNames();
24 foreach (String comp
in comps)
26 lstProgs.Items.Add(comp);
32 if (lstProgs.SelectedIndex != -1)
34 lstToRemove.Items.Add(lstProgs.SelectedItem);
35 lstProgs.Items.RemoveAt(lstProgs.SelectedIndex);
41 if (lstToRemove.SelectedIndex != -1)
43 lstProgs.Items.Add(lstToRemove.SelectedItem);
44 lstToRemove.Items.RemoveAt(lstToRemove.SelectedIndex);
50 if (lstToRemove.Items.Count > 0)
52 for (
int i = 0; i < lstToRemove.Items.Count; ++i)
54 toRemove.Add(lstToRemove.Items[i].ToString());
58 DialogResult = DialogResult.OK;
void btnRemove_Click(object sender, EventArgs e)
void btnOK_Click(object sender, EventArgs e)
void RemoveSubConfig_Load(object sender, EventArgs e)
void btnUndo_Click(object sender, EventArgs e)