예제 #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"));
        }
예제 #3
0
 void spListView1_ItemSelected(object Sender, SPListView.SPListItemEventArgs e)
 {
     navigate(e.Item.Uri);
 }
예제 #4
0
 public SPListItem(SPListView parent)
 {
     this.parent = parent;
     this.Children = new List<SPListItem>();
 }
예제 #5
0
 public SPListItem(SPListView parent)
 {
     this.parent   = parent;
     this.Children = new List <SPListItem>();
 }