예제 #1
0
        public MainForm()
        {
            InitializeComponent();
            this.spListView1 = new SPListView();
            // Add content panel
            contentPanel        = new Panel();
            sideBar             = new Panel();
            this.panel3.TabStop = true;

            this.panel3.Controls.Add(contentPanel);
            this.panel3.Controls.Add(sideBar);
            this.panel3.Controls.Add(spListView1);

            sideBar.Dock  = DockStyle.Right;
            sideBar.Width = 320;

            contentPanel.TabStop = true;
            contentPanel.Dock    = DockStyle.Fill;
            contentPanel.BringToFront();
            spListView1.Dock = DockStyle.Left;



            spListView1.Width         = 234;
            spListView1.ItemSelected += new SPListView.SPListItemMouseEventHandler(spListView1_ItemSelected);
            BuildMenu();
            this.Windows = new Dictionary <String, Control>();
            // Add sidebar

            browser = new SPWebBrowser("http://webchat.quakenet.org/");


            sideBar.Controls.Add(browser);

            browser.Dock = DockStyle.Fill;

            // Add SPTabView
            tabView = new SPTabView();
            this.contentPanel.Controls.Add(tabView);
            tabView.Dock        = DockStyle.Fill;
            tabView.TabChanged += new EventHandler(tabView_TabChanged);
            navigate(new Uri("mako://static.cobresia.webfactional.com/spotdev/index.html"));
        }
예제 #2
0
        public MainForm()
        {
            InitializeComponent();
            this.spListView1 = new SPListView();
            // Add content panel
            contentPanel = new Panel();
            sideBar = new Panel();
            this.panel3.TabStop = true;

            this.panel3.Controls.Add(contentPanel);
            this.panel3.Controls.Add(sideBar);
            this.panel3.Controls.Add(spListView1);

            sideBar.Dock = DockStyle.Right;
            sideBar.Width = 320;

            contentPanel.TabStop = true;
            contentPanel.Dock = DockStyle.Fill;
            contentPanel.BringToFront();
            spListView1.Dock = DockStyle.Left;

            spListView1.Width =234;
            spListView1.ItemSelected += new SPListView.SPListItemMouseEventHandler(spListView1_ItemSelected);
            BuildMenu();
            this.Windows = new Dictionary<String, Control>();
            // Add sidebar

            browser = new SPWebBrowser("http://webchat.quakenet.org/");

            sideBar.Controls.Add(browser);

            browser.Dock = DockStyle.Fill;

            // Add SPTabView
            tabView = new SPTabView();
            this.contentPanel.Controls.Add(tabView);
            tabView.Dock = DockStyle.Fill;
            tabView.TabChanged += new EventHandler(tabView_TabChanged);
            navigate(new Uri("mako://static.cobresia.webfactional.com/spotdev/index.html"));
        }