Example #1
0
 private void scriptsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FileLogic.ignoreSelectedIndexChanged == false)
     {
         FileLogic.SetSelectedScripts(scriptsListBox);
     }
 }
Example #2
0
        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);
        }