예제 #1
0
        private void Init(NodeViewModel vm, bool isLoaded, bool isExpanded, bool isSelected, bool isDummy, string id, string name, ImageSource imageSource, MyNode parentNode)
        {
            _exApp      = vm?._app as ExApplication;
            _vm         = vm;
            _isLoaded   = isLoaded;
            _isExpanded = isExpanded;
            _isSelected = isSelected;
            IsDummy     = isDummy;
            Id          = id;
            Name        = name;
            DbIcon      = imageSource;
            ParentNode  = parentNode;

            if (isDummy)
            {
                _todragtreechildren = null;
                _masks = null;
            }

            else
            {
                _todragtreechildren = new ObservableCollection <MyNode>();
                _masks = new ObservableCollection <MyMaskViewModel>();
            }
        }
            private IList <ObjectMaskDescription> GetMaskDescription(string Typeid)
            {
                IList <ObjectMaskDescription> maskData = new List <ObjectMaskDescription>();
                ExApplication exApp = this.myApplication as ExApplication;

                exApp.ExtendedUtils.GetObjectsMaskDescription(0, Typeid, ref maskData);
                return(maskData);
            }