2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Windows.Forms;
9 namespace SeciUserInterface.Dialogs.Exes
18 InitializeComponent();
23 List<String> conf =
new List<string>(Seci.Managers.ExecutableMgr.GetListOfExes(
false));
24 List<String> comp =
new List<string>(Seci.Managers.ExecutableMgr.GetListOfComponentExes());
26 for (
int i = 0; i < conf.Count; ++i)
28 lstProgs.Items.Add(conf[i]);
31 for (
int i = 0; i < comp.Count; ++i)
33 lstSubs.Items.Add(comp[i]);
40 if (lstProgs.SelectedIndex != -1)
42 lstToRemove.Items.Add(lstProgs.SelectedItem);
43 lstProgs.Items.RemoveAt(lstProgs.SelectedIndex);
49 if (lstToRemove.SelectedIndex != -1)
51 lstProgs.Items.Add(lstToRemove.SelectedItem);
52 lstToRemove.Items.RemoveAt(lstToRemove.SelectedIndex);
58 if (lstToRemove.Items.Count > 0)
61 toRemove =
new String[lstToRemove.Items.Count];
63 for (
int i = 0; i < lstToRemove.Items.Count; ++i)
65 toRemove[i] = lstToRemove.Items[i].ToString();
73 for (
int i = 0; i < toRemove.GetLength(0); ++i)
75 Seci.Managers.ExecutableMgr.RemoveExecutable(toRemove[i]);
79 DialogResult = DialogResult.OK;
void btnOK_Click(object sender, EventArgs e)
void RemoveExe_Load(object sender, EventArgs e)
void btnUndo_Click(object sender, EventArgs e)
void btnRemove_Click(object sender, EventArgs e)