public CDLSQIamltransformer() { cDLSQIcontroller = new CDLSQIcontroller(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 CDLSQIUserInterface(CDLSQIcontroller cDLSQIcontroller) { this.cDLSQIcontroller = cDLSQIcontroller; InitializeComponent(); }