예제 #1
0
        private void scriptFoldersListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            FileLogic.FillScriptsFromSelectedFolders(scriptFoldersListBox, scriptsListBox);

            scriptsListBox.Refresh();
            scriptsListBox.Size = new Size(100, 100);
        }
예제 #2
0
 private void scriptsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FileLogic.ignoreSelectedIndexChanged == false)
     {
         FileLogic.SetSelectedScripts(scriptsListBox);
     }
 }
예제 #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();
        }
예제 #4
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);
        }
예제 #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);
            }
        }
예제 #6
0
 private void refreshFormButton_Click(object sender, EventArgs e)
 {
     FileLogic.RefreshForm(ref filesListBox);
 }
예제 #7
0
 private void RunExecution_Click(object sender, EventArgs e)
 {
     // Run selected files
     FileLogic.RunFile(filesListBox, scriptsToSelectFromListBox);
 }
예제 #8
0
        public void GetFiles(string folderName)
        {
            FileLogic.LoadFiles(folderName);

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