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); } }
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); }
/// <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); } }
private void refreshFormButton_Click(object sender, EventArgs e) { FileLogic.RefreshForm(ref filesListBox); }
private void RunExecution_Click(object sender, EventArgs e) { // Run selected files FileLogic.RunFile(filesListBox, scriptsToSelectFromListBox); }
public void GetFiles(string folderName) { FileLogic.LoadFiles(folderName); FileLogic.RefreshForm(ref filesListBox); }
public void AddAvailableScripts() { FileLogic.FillAvailableScripts(scriptsToSelectFromListBox); }
private void listFiles_SelectedIndexChanged(object sender, EventArgs e) { FileLogic.SetSelectedFiles(filesListBox); }