private void scriptFoldersListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            FileLogic.FillScriptsFromSelectedFolders(scriptFoldersListBox, scriptsListBox);

            scriptsListBox.Refresh();
            scriptsListBox.Size = new Size(100, 100);
        }
 private void scriptsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FileLogic.ignoreSelectedIndexChanged == false)
     {
         FileLogic.SetSelectedScripts(scriptsListBox);
     }
 }
Beispiel #3
0
        private void PacketForm_Load(object sender, EventArgs e)
        {
            FileLogic.RefreshForm(ref filesListBox);

            for (int i = 0; i < filesListBox.Items.Count; i++)
            {
                filesListBox.SetSelected(i, true);
            }

            FileLogic.SetSelectedFiles(filesListBox);

            SelectAvailableScripts();
        }
        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);
        }
Beispiel #5
0
        /// <summary>
        /// Open files and run scripts
        /// </summary>
        private static void Process(string file, List <string> scriptsListBoxSelectedItems)
        {
            // Open File
            e3Application e3App = AppConnect.ToE3(file, out bool quitThenDone);

            if (scriptsListBoxSelectedItems.Count > 0)
            {
                FileLogic.RunScripts(e3App, scriptsListBoxSelectedItems);
            }

            if (quitThenDone)
            {
                e3Job e3Prj = (e3Job)e3App.CreateJobObject();
                e3Prj.Save();
                e3Prj.Close();
                //e3App.GetProcessProperty("");
                AppConnect.CloseE3App(e3App);
            }
        }
Beispiel #6
0
 private void refreshFormButton_Click(object sender, EventArgs e)
 {
     FileLogic.RefreshForm(ref filesListBox);
 }
Beispiel #7
0
 private void RunExecution_Click(object sender, EventArgs e)
 {
     // Run selected files
     FileLogic.RunFile(filesListBox, scriptsToSelectFromListBox);
 }
Beispiel #8
0
        public void GetFiles(string folderName)
        {
            FileLogic.LoadFiles(folderName);

            FileLogic.RefreshForm(ref filesListBox);
        }
Beispiel #9
0
 public void AddAvailableScripts()
 {
     FileLogic.FillAvailableScripts(scriptsToSelectFromListBox);
 }
Beispiel #10
0
 private void listFiles_SelectedIndexChanged(object sender, EventArgs e)
 {
     FileLogic.SetSelectedFiles(filesListBox);
 }