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

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

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

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

            if ((customView.Columns != null) && (mColumnCollectionNode == null))
            {
                var element = new CustomStoredProcedureColumnCollectionController(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 CustomStoredProcedureCollection list
            if (this.Parent != null)
            {
                ((CustomStoredProcedureCollectionNode)this.Parent).Refresh();
            }
        }
		public override void Refresh()
		{
			if ((this.TreeView != null) && (this.TreeView.InvokeRequired))
			{
				this.TreeView.Invoke(new EmptyDelegate(this.Refresh));
				return;
			}

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

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

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

			if ((customView.Columns != null) && (mColumnCollectionNode == null))
			{
				var element = new CustomStoredProcedureColumnCollectionController(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 CustomStoredProcedureCollection list
			if (this.Parent != null)
				((CustomStoredProcedureCollectionNode)this.Parent).Refresh();

		}
 public CustomStoredProcedureColumnCollectionNode(CustomStoredProcedureColumnCollectionController controller)
     : base(controller)
 {
 }
		public CustomStoredProcedureColumnCollectionNode(CustomStoredProcedureColumnCollectionController controller)
			: base(controller)
		{
		}