public EAScriptAddinSettingForm(List <MethodInfo> operations, List <ScriptFunction> functions, List <Script> scripts, EAScriptAddinAddinClass scriptAddin) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); this.controller = scriptAddin; this.addinOperations = operations; this.modelFunctions = functions; this.modelScripts = scripts; this.ScriptCombo.DisplayMember = "displayName"; //add the scripts to the combobox foreach (Script script in this.modelScripts) { this.ScriptCombo.Items.Add(script); } //select the first script if (this.ScriptCombo.Items.Count > 0) { this.ScriptCombo.SelectedIndex = 0; } this.operationsListBox.DisplayMember = "Name"; this.functionsListBox.DisplayMember = "fullName"; //load the operations this.reloadOperations(); //load the settings data this.loadData(); }
public EAScriptAddinSettingForm(List <MethodInfo> operations, List <ScriptFunction> functions, List <Script> scripts, EAScriptAddinAddinClass scriptAddin) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); this.controller = scriptAddin; this.addinOperations = operations; this.modelFunctions = functions; this.modelScripts = scripts; this.ScriptCombo.DisplayMember = "displayName"; //add the scripts to the combobox foreach (Script script in this.modelScripts) { this.ScriptCombo.Items.Add(script); } //select the first script if (this.ScriptCombo.Items.Count > 0) { this.ScriptCombo.SelectedIndex = 0; } this.operationsListBox.DisplayMember = "Name"; this.functionsListBox.DisplayMember = "fullName"; //load the operations this.reloadOperations(); //set the link to purchase license this.licenseExpiredLabel.Links.Add(0, this.licenseExpiredLabel.Text.Length, "http://bellekens.com/ea-matic"); //set the license status // this.setLicenseStatus(this.controller.isLicensed); }