コード例 #1
0
        public ABCTreeListNode(ABCTreeListNode parent, String strObjectName, BusinessObject _data)
        {
            this.ObjectName = strObjectName;
            this.ParentNode = parent;
            if (parent != null)
            {
                this.Level   = parent.Level + 1;
                this.Manager = this.ParentNode.Manager;
            }

            this.InnerData = _data;
            if (this.InnerData != null)
            {
                Guid iID = ABCHelper.DataConverter.ConvertToGuid(ABCBusinessEntities.ABCDynamicInvoker.GetValue(this.InnerData, DataStructureProvider.GetPrimaryKeyColumn(this.InnerData.AATableName)));
                if (this.ParentNode != null)
                {
                    this.ParentNode.ChildrenNodes.Add(iID, this);
                }

                CachingNode();
            }
        }
コード例 #2
0
        public TreeColumnConfigForm(BindingList <ABCTreeListColumn.ColumnConfig> list, TreeConfigNode rootConfig)
        {
            InitializeComponent();

            ColumnList         = new BindingList <ABCTreeListColumn.ColumnConfig>();
            Manager            = new ABCTreelistManager(DisplayTreeListCtrl);
            Manager.RootConfig = BackupManager(rootConfig);


            this.Load        += new EventHandler(Form_Load);
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;

            InitPopupMenu();

            if (list != null)
            {
                foreach (ABCTreeListColumn.ColumnConfig config in list)
                {
                    ColumnList.Add(config.Clone() as ABCTreeListColumn.ColumnConfig);
                }
            }
        }