Inheritance: nHydrate.Generator.Common.GeneratorFramework.BaseModelObjectController
コード例 #1
0
        public override void Refresh()
        {
            if ((this.TreeView != null) && (this.TreeView.InvokeRequired))
            {
                this.TreeView.Invoke(new EmptyDelegate(this.Refresh));
                return;
            }

            var customView = ((CustomAggregate)this.Object);

            this.Text       = customView.ToString();
            this.Name       = customView.Key;
            this.ImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.CustomView);

            this.SelectedImageIndex = this.ImageIndex;
            this.ToolTipText        = customView.Description;

            if ((customView.Columns != null) && (mColumnCollectionNode == null))
            {
                var element = new CustomAggregateColumnCollectionController(customView.Columns);
                mColumnCollectionNode = element.Node;
                this.Nodes.Add(element.Node);
            }

            if ((customView.Parameters != null) && (mParametersCollectionNode == null))
            {
                var element = new ParameterCollectionController(customView.Parameters);
                mParametersCollectionNode = element.Node;
                this.Nodes.Add(element.Node);
            }

            //Update the CustomAggregateCollection list
            if (this.Parent != null)
            {
                ((CustomAggregateCollectionNode)this.Parent).Refresh();
            }
        }
コード例 #2
0
		public override void Refresh()
		{
			if ((this.TreeView != null) && (this.TreeView.InvokeRequired))
			{
				this.TreeView.Invoke(new EmptyDelegate(this.Refresh));
				return;
			}

			var customView = ((CustomAggregate)this.Object);

			this.Text = customView.ToString();
			this.Name = customView.Key;
			this.ImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.CustomView);

			this.SelectedImageIndex = this.ImageIndex;
			this.ToolTipText = customView.Description;

			if ((customView.Columns != null) && (mColumnCollectionNode == null))
			{
				var element = new CustomAggregateColumnCollectionController(customView.Columns);
				mColumnCollectionNode = element.Node;
				this.Nodes.Add(element.Node);
			}

			if ((customView.Parameters != null) && (mParametersCollectionNode == null))
			{
				var element = new ParameterCollectionController(customView.Parameters);
				mParametersCollectionNode = element.Node;
				this.Nodes.Add(element.Node);
			}

			//Update the CustomAggregateCollection list
			if (this.Parent != null)
				((CustomAggregateCollectionNode)this.Parent).Refresh();

		}
コード例 #3
0
 public CustomAggregateColumnCollectionNode(CustomAggregateColumnCollectionController controller)
     : base(controller)
 {
 }
コード例 #4
0
		public CustomAggregateColumnCollectionNode(CustomAggregateColumnCollectionController controller)
			: base(controller)
		{
		}