Ejemplo n.º 1
0
        public void AddImageManagerView(ImageManagerView imageManagerView)
        {
            if (this.imageManagerView != null)
            {
                throw new InvalidOperationException("The ImageManagerView is already initialized.");
            }

            this.imageManagerView = imageManagerView;
        }
Ejemplo n.º 2
0
        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();
        }