public SharpDevelopSideBar()
        {
            SideTabItemFactory = new SharpDevelopSideTabItemFactory();

            MouseUp += new MouseEventHandler(SetContextMenu);
            sideTabContent.MouseUp += new MouseEventHandler(SetItemContextMenu);
        }
Пример #2
0
		public SharpDevelopSideBar()
		{
			SideTabItemFactory = new SharpDevelopSideTabItemFactory();
			
			MouseUp                     += new MouseEventHandler(SetContextMenu);
			sideTabContent.MouseUp += new MouseEventHandler(SetItemContextMenu);
		}
Пример #3
0
        public SharpDevelopSideBar()
        {
            SideBar = this;

            SideTabItemFactory = new SharpDevelopSideTabItemFactory();

            MouseUp += new MouseEventHandler(SetContextMenu);
            sideTabContent.MouseUp += new MouseEventHandler(SetItemContextMenu);

            foreach (TextTemplate template in TextTemplate.TextTemplates)
            {
                SideTab tab = new SideTab(this, template.Name);
                tab.DisplayName = StringParser.Parse(tab.Name);
                tab.CanSaved    = false;
                foreach (TextTemplate.Entry entry in template.Entries)
                {
                    tab.Items.Add(SideTabItemFactory.CreateSideTabItem(entry.Display, entry.Value));
                }
                tab.CanBeDeleted  = tab.CanDragDrop = false;
                standardTabs[tab] = true;
                Tabs.Add(tab);
            }
            sideTabContent.DoubleClick += new EventHandler(MyDoubleClick);
        }
		public SharpDevelopSideBar()
		{
			SideBar = this;
			
			SideTabItemFactory = new SharpDevelopSideTabItemFactory();
			
			MouseUp                     += new MouseEventHandler(SetContextMenu);
			sideTabContent.MouseUp += new MouseEventHandler(SetItemContextMenu);
			
			foreach (TextTemplate template in TextTemplate.TextTemplates) {
				SideTab tab = new SideTab(this, template.Name);
				tab.DisplayName = StringParser.Parse(tab.Name);
				tab.CanSaved  = false;
				foreach (TextTemplate.Entry entry in template.Entries)  {
					tab.Items.Add(SideTabItemFactory.CreateSideTabItem(entry.Display, entry.Value));
				}
				tab.CanBeDeleted = tab.CanDragDrop = false;
				standardTabs[tab] = true;
				Tabs.Add(tab);
			}
			sideTabContent.DoubleClick += new EventHandler(MyDoubleClick);
		}