private void scriptsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FileLogic.ignoreSelectedIndexChanged == false)
     {
         FileLogic.SetSelectedScripts(scriptsListBox);
     }
 }
        public AvailableScriptsForm(PacketForm caller)
        {
            InitializeComponent();

            callingForm = caller;

            scriptFoldersListBox.AutoSize = true;
            scriptsListBox.AutoSize       = true;

            scriptFoldersListBox.Sorted = true;
            scriptsListBox.Sorted       = true;

            scriptsListBox.DisplayMember = "ShortScriptName";

            scriptsListBox.ValueMember = "fullPath";

            FileLogic.LoadScriptFolder(ref scriptFoldersListBox, ref scriptsListBox);
            FileLogic.SetSelectedScripts(scriptsListBox);
        }