///<summary>Load an assembly's controls</summary>
		public CustomComponentsSideTab(SideBarControl sideTab, string name, IToolboxService toolboxService)
			: base(sideTab, name, toolboxService)
		{
			this.DisplayName = StringParser.Parse(this.Name);
			ScanProjectAssemblies();
			ProjectService.BuildFinished    += RescanProjectAssemblies;
			ProjectService.SolutionLoaded   += RescanProjectAssemblies;
			ProjectService.ProjectItemAdded += ProjectItemAdded;
		}
 ///<summary>Load an assembly's controls</summary>
 public CustomComponentsSideTab(SideBarControl sideTab, string name, IToolboxService toolboxService)
     : base(sideTab, name, toolboxService)
 {
     this.DisplayName = StringParser.Parse(this.Name);
     ScanProjectAssemblies();
     ProjectService.BuildFinished    += RescanProjectAssemblies;
     ProjectService.SolutionLoaded   += RescanProjectAssemblies;
     ProjectService.ProjectItemAdded += ProjectItemAdded;
 }
Пример #3
0
		protected SideTabDesigner(SideBarControl sideBar, string name, IToolboxService toolboxService)
			: base(sideBar, name)
		{
			this.DisplayName = StringParser.Parse(name);
			this.toolboxService = toolboxService;
			this.CanSaved = false;
			
			AddDefaultItem();
			this.ChosenItemChanged += SelectedTabItemChanged;
		}
Пример #4
0
        protected SideTabDesigner(SideBarControl sideBar, string name, IToolboxService toolboxService)
            : base(sideBar, name)
        {
            this.DisplayName    = StringParser.Parse(name);
            this.toolboxService = toolboxService;
            this.CanSaved       = false;

            AddDefaultItem();
            this.ChosenItemChanged += SelectedTabItemChanged;
        }
Пример #5
0
		///<summary>Load an assembly's controls</summary>
		public SideTabDesigner(SideBarControl sideBar, Category category, IToolboxService toolboxService) : this(sideBar, category.Name, toolboxService)
		{
			foreach (ToolComponent component in category.ToolComponents) {
				if (component.IsEnabled) {
					ToolboxItem toolboxItem = new ToolboxItem();
					toolboxItem.TypeName    = component.FullName;
					toolboxItem.Bitmap      = ToolboxProvider.ComponentLibraryLoader.GetIcon(component);
					toolboxItem.DisplayName = component.Name;
					Assembly asm = component.LoadAssembly();
					toolboxItem.AssemblyName = asm.GetName();
					
					this.Items.Add(new SideTabItemDesigner(toolboxItem));
				}
			}
		}
Пример #6
0
        /// <summary>
        /// Open the sidebar panel as a sibling of the layers table
        /// </summary>
        public void CreateHostDockPanel()
        {
            if (!RUI.Panels.IsPanelVisible(typeof(SideBarUIHost).GUID))
            {
                if (!RUI.Panels.OpenPanelAsSibling(typeof(SideBarUIHost).GUID, RUI.PanelIds.Layers))
                {
                    RUI.Panels.OpenPanel(typeof(SideBarUIHost).GUID);
                }
            }

            SideBarControl selectPanel = new SideBarControl();

            selectPanel.DataContext = Core.Instance;
            SideBarUIHost host = (SideBarUIHost)RUI.Panels.GetPanel(typeof(SideBarUIHost).GUID);

            host.Host(selectPanel);
        }
Пример #7
0
        ///<summary>Load an assembly's controls</summary>
        public SideTabDesigner(SideBarControl sideBar, Category category, IToolboxService toolboxService) : this(sideBar, category.Name, toolboxService)
        {
            foreach (ToolComponent component in category.ToolComponents)
            {
                if (component.IsEnabled)
                {
                    ToolboxItem toolboxItem = new ToolboxItem();
                    toolboxItem.TypeName    = component.FullName;
                    toolboxItem.Bitmap      = ToolboxProvider.ComponentLibraryLoader.GetIcon(component);
                    toolboxItem.DisplayName = component.Name;
                    Assembly asm = component.LoadAssembly();
                    toolboxItem.AssemblyName = asm.GetName();

                    this.Items.Add(new SideTabItemDesigner(toolboxItem));
                }
            }
        }
        public PreferencesForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.buttonOK.Text     = Res.Get(StringId.OKButtonText);
            this.buttonCancel.Text = Res.Get(StringId.CancelButton);
            this.buttonApply.Text  = Res.Get(StringId.ApplyButton);
            //	Set the title of the form.
            Text = Res.Get(StringId.Options);

            //	Instantiate and initialize the SideBarControl.
            sideBarControl                       = new SideBarControl();
            sideBarControl.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom;
            sideBarControl.TabStop               = true;
            sideBarControl.TabIndex              = 0;
            sideBarControl.SelectedIndexChanged += new EventHandler(sideBarControl_SelectedIndexChanged);
            sideBarControl.Location              = new Point(10, 10);
            sideBarControl.Size                  = new Size(151, ClientSize.Height - 20);
            Controls.Add(sideBarControl);
        }
		SetupDialogControlsSideTab(SideBarControl sideBar, Category category, IToolboxService toolboxService)
			: base(sideBar, category, toolboxService)
		{
		}
Пример #10
0
 SetupDialogControlsSideTab(SideBarControl sideBar, Category category, IToolboxService toolboxService)
     : base(sideBar, category, toolboxService)
 {
 }
 internal TabSwitcher(SideBarControl control)
 {
     this.control = control;
 }