/// <summary> /// Init the GUI and initialize the available connector types /// </summary> /// <param name="mWController">The <see cref="MWController"/> to pass data to</param> public CreateInterface(MWController mWController) { this.mWController = mWController; InitializeComponent(); foreach (var item in MWConnectorTypes.ConnectorMap.Keys) { this.cmbConnectorType.Items.Add(item); } }
/// <summary> /// Create the MWData Object /// </summary> /// <param name="mWController">the MWController to report to</param> public MWData(MWController mWController) { this.mWController = mWController; }
public ModellingWizard() { mWController = new MWController(this); // Defines the Command list, which will contain user commands, which a user can select // via the PlugIn Menu. Commands = new List <PluginCommand>(); // Every PlugIn needs at least an Activation command, which will be called by a user to activate the PlugIn. ActivatePlugin = new PluginCommand() { Command = new RelayCommand <object>(this.StartCommandExecute, this.StartCommandCanExecute), CommandName = "Start", CommandToolTip = "Start the PlugIn" }; // Every PlugIn should provide a Termination command, which will be called when the PlugIn window is closed by the user. This can only // occur, if the PlugIn view is embedded in a docking window by the Editor. TerminatePlugin = new PluginCommand() { Command = new RelayCommand <object>(this.StopCommandExecute, this.StopCommandCanExecute), CommandName = "Stop", CommandToolTip = "Stop the PlugIn" }; ReloadObjects = new PluginCommand() { Command = new RelayCommand <object>(this.ReloadObjectsExecute, this.StopCommandCanExecute), CommandName = "Reload Objects", CommandToolTip = "Reload all .amlx in the plugin folder" }; InitializeComponent(); // Add the StartCommand (should exist in any PlugIn) Commands.Add(ActivatePlugin); // Add the Stop Command (should exist in any PlugIn) Commands.Add(TerminatePlugin); Commands.Add(ReloadObjects); //// Add the change spelling command (an additional command, only for this special PlugIn) //Commands.Add(new PluginCommand() //{ // CommandName = "Load File", // Command = InvertCase, // CommandToolTip = "Load a new test file" //}); // Add the About Command (recommended to exist in any PlugIn) Commands.Add(new PluginCommand() { CommandName = "About", Command = AboutCommand, CommandToolTip = "Information about this PlugIn" }); this.IsActive = false; }
public StartGUI(MWController mWController) { this.mWController = mWController; InitializeComponent(); }
/// <summary> /// Create and initialize the GUI /// </summary> /// <param name="mWController">The <see cref="MWController"/>MWController Object to which the data will be passed to</param> public CreateDevice(MWController mWController) { this.mWController = mWController; InitializeComponent(); }