public void AddPluginManagerView(PluginManagerView pluginManagerView) { if (this.pluginManagerView != null) { throw new InvalidOperationException("The PluginManagerView is already initialized."); } this.pluginManagerView = pluginManagerView; }
public MainWindow(FileOperationController fileOperationController, PluginOperationController pluginOperationController, ImageManagerView imageManagerView, PluginManagerView pluginManagerView, AboutBoxView aboutBoxView, IApplicationLogic applicationLogic) { this.fileOperationController = fileOperationController; this.pluginOperationController = pluginOperationController; this.imageManagerView = imageManagerView; this.pluginManagerView = pluginManagerView; this.aboutBoxView = aboutBoxView; this.applicationLogic = applicationLogic as ApplicationLogic; this.InitializeComponent(); this.mainSplitContainer.Panel1.Controls.Add(this.imageManagerView); this.mainSplitContainer.Panel2.Controls.Add(this.pluginManagerView); this.InitializePlugins(); }