2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Windows.Forms;
9 namespace Sample_Environment_Control_Interface.Dialogs.Associated_Files
18 InitializeComponent();
23 lstFiles.Items.AddRange(Seci.SeciInterface.Assoc_GetListOfFiles().ToArray());
28 if (lstFiles.SelectedIndex != -1)
30 lstToRemove.Items.Add(lstFiles.SelectedItem);
31 lstFiles.Items.RemoveAt(lstFiles.SelectedIndex);
37 if (lstToRemove.SelectedIndex != -1)
39 lstFiles.Items.Add(lstToRemove.SelectedItem);
40 lstToRemove.Items.RemoveAt(lstToRemove.SelectedIndex);
46 if (lstToRemove.Items.Count > 0)
49 toRemove =
new String[lstToRemove.Items.Count];
51 for (
int i = 0; i < lstToRemove.Items.Count; ++i)
53 toRemove[i] = lstToRemove.Items[i].ToString();
61 for (
int i = 0; i < toRemove.GetLength(0); ++i)
63 Seci.SeciInterface.Assoc_RemoveFile(toRemove[i]);
67 DialogResult = DialogResult.OK;
void btnRemove_Click(object sender, EventArgs e)
void btnOK_Click(object sender, EventArgs e)
void btnUndo_Click(object sender, EventArgs e)
void RemoveFiles_Load(object sender, EventArgs e)