コード例 #1
0
 private void CheckType(DashboardNodePropertyBase property)
 {
     if (GroupedProperties.Any() && !GroupedProperties.First().GenericProxy.CompatibleWith(property.GenericProxy))
     {
         throw new InvalidOperationException(string.Format("Wrong property type: {0}", property.GenericProxy.Type));
     }
 }
コード例 #2
0
        public void Add(DashboardNodePropertyBase property)
        {
            CheckType(property);

            if (GroupedProperties.Contains(property))
            {
                return;
            }

            GroupedProperties.Add(property);
            property.Group = this;
            property.GenericProxy.Value = GroupedProperties.First().GenericProxy.Value;
        }
コード例 #3
0
 private void CheckType(DashboardNodePropertyBase property)
 {
     if (GroupedProperties.Any() && !GroupedProperties.First().GenericProxy.CompatibleWith(property.GenericProxy))
         throw new InvalidOperationException(string.Format("Wrong property type: {0}", property.GenericProxy.Type));
 }
コード例 #4
0
 public void Remove(DashboardNodePropertyBase property)
 {
     GroupedProperties.Remove(property);
     property.Group = null;
 }
コード例 #5
0
        public void Add(DashboardNodePropertyBase property)
        {
            CheckType(property);

            if (GroupedProperties.Contains(property))
                return;

            GroupedProperties.Add(property);
            property.Group = this;
            property.GenericProxy.Value = GroupedProperties.First().GenericProxy.Value;
        }
コード例 #6
0
 public void Remove(DashboardNodePropertyBase property)
 {
     GroupedProperties.Remove(property);
     property.Group = null;
 }