Example #1
0
			public MyRootControl(MyRootDesigner rootDesigner)
			{
				_rootDesigner = rootDesigner;
				_componentInfoTable = new Hashtable();
				_linkLabel = new LinkLabel();
				_linkLabel.Text = "Graph Style";
				_linkLabel.Location = new Point(10, 5);
				_linkLabel.Visible = false;
				_linkLabel.Click += new EventHandler(_linkLabel_Click);
				this.Controls.Add(_linkLabel);
				this.Resize += new EventHandler(MyRootControl_Resize);
				for(int i=1;i<_rootDesigner.Component.Site.Container.Components.Count;i++)
					UpdateTable(_rootDesigner.Component.Site.Container.Components[i].GetType());

				Invalidate();
			}
Example #2
0
            public MyRootControl(MyRootDesigner rootDesigner)
            {
                _rootDesigner       = rootDesigner;
                _componentInfoTable = new Hashtable();
                _linkLabel          = new LinkLabel();
                _linkLabel.Text     = "Graph Style";
                _linkLabel.Location = new Point(10, 5);
                _linkLabel.Visible  = false;
                _linkLabel.Click   += new EventHandler(_linkLabel_Click);
                this.Controls.Add(_linkLabel);
                this.Resize += new EventHandler(MyRootControl_Resize);
                for (int i = 1; i < _rootDesigner.Component.Site.Container.Components.Count; i++)
                {
                    UpdateTable(_rootDesigner.Component.Site.Container.Components[i].GetType());
                }

                Invalidate();
            }