2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Windows.Forms;
9 namespace Sample_Environment_Control_Interface.Dialogs.Exe
18 InitializeComponent();
23 List<String> list = Seci.SeciInterface.Exe_GetListOfConfigExes();
25 for (
int i = 0; i < list.Count; ++i)
27 lstProgs.Items.Add(list[i]);
34 if (lstProgs.SelectedIndex != -1)
36 lstToRemove.Items.Add(lstProgs.SelectedItem);
37 lstProgs.Items.RemoveAt(lstProgs.SelectedIndex);
43 if (lstToRemove.SelectedIndex != -1)
45 lstProgs.Items.Add(lstToRemove.SelectedItem);
46 lstToRemove.Items.RemoveAt(lstToRemove.SelectedIndex);
52 if (lstToRemove.Items.Count > 0)
55 toRemove =
new String[lstToRemove.Items.Count];
57 for (
int i = 0; i < lstToRemove.Items.Count; ++i)
59 toRemove[i] = lstToRemove.Items[i].ToString();
67 for (
int i = 0; i < toRemove.GetLength(0); ++i)
69 SECI_GUI.CurrentLayout.RemoveProgFromAllGroups(toRemove[i]);
70 Seci.SeciInterface.Exe_RemoveExecutable(toRemove[i]);
74 DialogResult = DialogResult.OK;
void btnUndo_Click(object sender, EventArgs e)
void btnRemove_Click(object sender, EventArgs e)
void RemoveExe_Load(object sender, EventArgs e)
void btnOK_Click(object sender, EventArgs e)