Ejemplo n.º 1
0
        public void ShowExternal(ViewShell view, bool external = false)
        {
            var extView = new ExternalView(this, ExternalViews, view);

            ExternalViews.Add(extView);

            view.Init();

            extView.Show();
        }
Ejemplo n.º 2
0
        public void ShowExternal(ViewShell view, bool external=false)
        {
            var extView = new ExternalView(this, ExternalViews, view);

            ExternalViews.Add(extView);

            view.Init();

            extView.Show();
        }
Ejemplo n.º 3
0
        public ExternalView(Form main, List<ExternalView> views, ViewShell shell)
        {
            InitializeComponent();

            Main = main;
            MainViews = views;

            Shell = shell;
            Shell.Dock = DockStyle.Fill;
            Shell.External = this;

            Controls.Add(Shell);

            Text = shell.GetTitle(false);
            Size = shell.GetDefaultSize();

            Icon icon = shell.GetIcon();

            if (icon != null)
                Icon = icon;
        }
Ejemplo n.º 4
0
        public ExternalView(Form main, List <ExternalView> views, ViewShell shell)
        {
            InitializeComponent();

            Main      = main;
            MainViews = views;

            Shell          = shell;
            Shell.Dock     = DockStyle.Fill;
            Shell.External = this;

            Controls.Add(Shell);

            Text = shell.GetTitle(false);
            Size = shell.GetDefaultSize();

            Icon icon = shell.GetIcon();

            if (icon != null)
            {
                Icon = icon;
            }
        }
Ejemplo n.º 5
0
        void ShowInternal(ViewShell view)
        {
            if (!CleanInternal())
                return;

            view.Dock = DockStyle.Fill;

            InternalPanel.Visible = false;
            InternalPanel.Controls.Add(view);
            InternalView = view;

            UpdateNavBar();

            InternalView.Init();
            InternalPanel.Visible = true;
        }
Ejemplo n.º 6
0
        void ShowExternal(ViewShell view)
        {
            ExternalView external = new ExternalView(this, ExternalViews, view);

            ExternalViews.Add(external);

            if(InternalView == null || !InternalView.BlockReinit)
                view.Init();

            external.Show();
        }
Ejemplo n.º 7
0
        private void PopoutButton_Click(object sender, EventArgs e)
        {
            if(InternalView == null) // no controls loaded
                return;

            SuspendLayout();
            InternalPanel.Controls.Clear();

            InternalView.BlockReinit = true;
            ShowExternal(InternalView);
            InternalView = null;

            OnSelectChange(CommandTree.SelectedLink, SelectedProject);
            ResumeLayout();
        }
Ejemplo n.º 8
0
 public void ShowView(ViewShell view, bool external)
 {
     if (external)
         ShowExternal(view);
     else
         ShowInternal(view);
 }