public AddInScoutViewContent()
            : base()
        {
            this.TitleName = "AddIn Scout";

            Panel p = new Panel();
            p.Dock = DockStyle.Fill;
            p.BorderStyle = BorderStyle.FixedSingle;

            Panel RightPanel = new Panel();
            RightPanel.Dock = DockStyle.Fill;
            p.Controls.Add(RightPanel);

            codonListPanel.Dock = DockStyle.Fill;
            codonListPanel.CurrentAddinChanged += new EventHandler(CodonListPanelCurrentAddinChanged);
            RightPanel.Controls.Add(codonListPanel);

            Splitter hs = new Splitter();
            hs.Dock = DockStyle.Top;
            RightPanel.Controls.Add(hs);

            addInDetailsPanel.Dock = DockStyle.Top;
            addInDetailsPanel.Height = 175;
            RightPanel.Controls.Add(addInDetailsPanel);

            Splitter s1 = new Splitter();
            s1.Dock = DockStyle.Left;
            p.Controls.Add(s1);

            AddinTreeView addinTreeView = new AddinTreeView();
            addinTreeView.Dock = DockStyle.Fill;
            addinTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);

            TreeTreeView treeTreeView = new TreeTreeView();
            treeTreeView.Dock = DockStyle.Fill;
            treeTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);

            TabControl tab = new TabControl();
            tab.Width = 300;
            tab.Dock = DockStyle.Left;

            TabPage tabPage2 = new TabPage("Tree");
            tabPage2.Dock = DockStyle.Left;
            tabPage2.Controls.Add(treeTreeView);
            tab.TabPages.Add(tabPage2);

            TabPage tabPage = new TabPage("AddIns");
            tabPage.Dock = DockStyle.Left;
            tabPage.Controls.Add(addinTreeView);
            tab.TabPages.Add(tabPage);

            p.Controls.Add(tab);

            this.control = p;
            this.TitleName = "AddIn Scout";
        }
Пример #2
0
        public AddInScoutViewContent() : base()
        {
            this.TitleName = "AddIn Scout";

            Panel p = new Panel();

            p.Dock        = DockStyle.Fill;
            p.BorderStyle = BorderStyle.FixedSingle;

            Panel RightPanel = new Panel();

            RightPanel.Dock = DockStyle.Fill;
            p.Controls.Add(RightPanel);

            codonListPanel.Dock = DockStyle.Fill;
            codonListPanel.CurrentAddinChanged += new EventHandler(CodonListPanelCurrentAddinChanged);
            RightPanel.Controls.Add(codonListPanel);

            Splitter hs = new Splitter();

            hs.Dock = DockStyle.Top;
            RightPanel.Controls.Add(hs);

            addInDetailsPanel.Dock   = DockStyle.Top;
            addInDetailsPanel.Height = 175;
            RightPanel.Controls.Add(addInDetailsPanel);

            Splitter s1 = new Splitter();

            s1.Dock = DockStyle.Left;
            p.Controls.Add(s1);

            AddinTreeView addinTreeView = new AddinTreeView();

            addinTreeView.Dock = DockStyle.Fill;
            addinTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);

            TreeTreeView treeTreeView = new TreeTreeView();

            treeTreeView.Dock = DockStyle.Fill;
            treeTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);

            TabControl tab = new TabControl();

            tab.Width = 300;
            tab.Dock  = DockStyle.Left;

            TabPage tabPage2 = new TabPage("Tree");

            tabPage2.Dock = DockStyle.Left;
            tabPage2.Controls.Add(treeTreeView);
            tab.TabPages.Add(tabPage2);

            TabPage tabPage = new TabPage("AddIns");

            tabPage.Dock = DockStyle.Left;
            tabPage.Controls.Add(addinTreeView);
            tab.TabPages.Add(tabPage);

            p.Controls.Add(tab);

            this.control   = p;
            this.TitleName = "AddIn Scout";
        }