2 using System.Collections;
 
    3 using System.Collections.Generic;
 
    4 using System.ComponentModel;
 
    8 using System.Windows.Forms;
 
   10 namespace Sample_Environment_Control_Interface.Dialogs.Exe
 
   17             InitializeComponent();
 
   23             if (browseDialog.ShowDialog() == DialogResult.OK)
 
   25                 txtExe.Text = browseDialog.FileName;
 
   31             if (!String.IsNullOrEmpty(txtExe.Text))
 
   33                 btnAdd.Enabled = 
false;
 
   35                 if (Seci.SeciInterface.Exe_AddExecutable(txtExe.Text) == 
false)
 
   37                     MessageBox.Show(
"The name needs to be unique; an executable with this name already exists!", 
"Not Unique!", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
   38                     btnAdd.Enabled = 
true;
 
   42                     DialogResult = DialogResult.OK;
 
   48                 MessageBox.Show(
"Please enter a name and the path of the executable", 
"Missing Values!", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
void btnAdd_Click(object sender, EventArgs e)
void btnBrowse_Click(object sender, EventArgs e)