Inheritance: nHydrate.Generator.Common.GeneratorFramework.BaseModelObjectController
Ejemplo n.º 1
0
        public override void Refresh()
        {
            if ((this.TreeView != null) && (this.TreeView.InvokeRequired))
            {
                this.TreeView.Invoke(new EmptyDelegate(this.Refresh));
                return;
            }

            var customView = ((CustomView)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 CustomViewColumnCollectionController(customView.Columns);
                mColumnCollectionNode = element.Node;
                this.Nodes.Add(element.Node);
            }

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

            //Update the CustomViewCollection list
            if (this.Parent != null)
            {
                ((CustomViewCollectionNode)this.Parent).Refresh();
            }
        }
Ejemplo n.º 2
0
		public override void Refresh()
		{
			if((this.TreeView != null) && (this.TreeView.InvokeRequired))
			{
				this.TreeView.Invoke(new EmptyDelegate(this.Refresh));
				return;
			}

			var customView = ((CustomView)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 CustomViewColumnCollectionController(customView.Columns);
				mColumnCollectionNode = element.Node;
				this.Nodes.Add(element.Node);
			}

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

			//Update the CustomViewCollection list
			if(this.Parent != null)
				((CustomViewCollectionNode)this.Parent).Refresh();

		}
 public CustomViewColumnCollectionNode(CustomViewColumnCollectionController controller)
     : base(controller)
 {
 }
		public CustomViewColumnCollectionNode(CustomViewColumnCollectionController controller)
			: base(controller)
		{
		}