public WorkitemDescriptor(Entity entity, IEnumerable<ColumnSetting> columns, PropertyUpdateSource updateSource, bool iconless) {
     this.entity = entity;
     this.updateSource = updateSource;
     this.iconless = iconless;
     dataLayer = ServiceLocator.Instance.Get<IDataLayer>();
     ConfigurePropertyDescriptors(columns);
 }
 private WorkitemPropertyDescriptor(Entity entity, string name, string attribute, Attribute[] attrs, PropertyUpdateSource updateSource)
     : base(name, attrs) {
     this.entity = entity;
     this.attribute = attribute;
     this.updateSource = updateSource;
     readOnly = entity.IsPropertyDefinitionReadOnly(Attribute) || entity.IsPropertyReadOnly(Attribute);
 }
 private WorkitemPropertyDescriptor(Entity entity, string name, string attribute, Attribute[] attrs, PropertyUpdateSource updateSource)
     : base(name, attrs)
 {
     this.entity       = entity;
     this.attribute    = attribute;
     this.updateSource = updateSource;
     readOnly          = entity.IsPropertyDefinitionReadOnly(Attribute) || entity.IsPropertyReadOnly(Attribute);
 }
        public WorkitemDescriptor(Entity entity, IEnumerable <ColumnSetting> columns, PropertyUpdateSource updateSource, bool iconless)
        {
            this.entity       = entity;
            this.updateSource = updateSource;
            this.iconless     = iconless;

            dataLayer = ServiceLocator.Instance.Get <IDataLayer>();
            ConfigurePropertyDescriptors(columns);
        }
 private void HandleWorkitemPropertiesUpdated(PropertyUpdateSource source) {
     switch (source) {
         case PropertyUpdateSource.WorkitemView:
             view.RefreshProperties();
             break;
         case PropertyUpdateSource.WorkitemPropertyView:
             model.InvokeStructureChanged(view.Tree.GetPath(view.CurrentNode));
             break;
     }
 }
예제 #6
0
        private void HandleWorkitemPropertiesUpdated(PropertyUpdateSource source)
        {
            switch (source)
            {
            case PropertyUpdateSource.WorkitemView:
                view.RefreshProperties();
                break;

            case PropertyUpdateSource.WorkitemPropertyView:
                model.InvokeStructureChanged();
                break;
            }
        }
 public WorkitemPropertyDescriptor(Entity entity, string name, ColumnSetting settings, Attribute[] attrs, PropertyUpdateSource updateSource)
     : this(entity, name, settings.Attribute, attrs, updateSource) {
         readOnly |= settings.ReadOnly;
 }
 public WorkitemDescriptor GetDetailedDescriptor(ColumnSetting[] settings, PropertyUpdateSource requiredUpdateSource) {
     return new WorkitemDescriptor(entity, settings, requiredUpdateSource, true);
 }
 public WorkitemPropertiesUpdatedArgs(PropertyUpdateSource source)
 {
     Source = source;
 }
 public WorkitemPropertyDescriptor(Entity entity, string name, ColumnSetting settings, Attribute[] attrs, PropertyUpdateSource updateSource)
     : this(entity, name, settings.Attribute, attrs, updateSource)
 {
     readOnly |= settings.ReadOnly;
 }
 public WorkitemPropertiesUpdatedArgs(PropertyUpdateSource source) {
     Source = source;
 }
 public WorkitemDescriptor GetDetailedDescriptor(ColumnSetting[] settings, PropertyUpdateSource requiredUpdateSource)
 {
     return(new WorkitemDescriptor(entity, settings, requiredUpdateSource, true));
 }