示例#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);
 }