Ejemplo n.º 1
0
        /// <summary>
        /// Initialises this plugin. Basicaly it should configure the menus into the PluginHost
        /// Every task that could throw exception should be in this method and not in the ctor.
        /// </summary>
        public override void Initialise()
        {
            Assert.IsNotNull(PluginContext.Host, "To initialise the plugin, IPluginHost should be set.");

            PluginContext.Host.Invoke(() => workbench = new WorkbenchView());
            this.MapWindows();
            this.BuildButtons();
            this.BuildContextMenu();
        }
Ejemplo n.º 2
0
 public static WorkbenchViewModel GetViewModel(WorkbenchView view)
 {
     return(view.DataContext as WorkbenchViewModel);
 }