Esempio n. 1
0
 private void LoadCollectionValues()
 {
     _collectionValues = (IList)_property.GetValue();
     _collectionItemValues.Clear();
     for (int i = 0; i < _collectionValues.Count; i++)
     {
         var collectionitem = new CollectionItemValue(this, i);
         _collectionItemValues.Add(collectionitem);
     }
 }
Esempio n. 2
0
 private void LoadCollectionValues()
 {
     _collectionValues = _property.GetValue() as IList;
     _collectionItemValues.Clear();
     if (_collectionValues != null)
     {
         for (int i = 0; i < _collectionValues.Count; i++)
         {
             var collectionitem = new CollectionItemValue(this, i);
             _collectionItemValues.Add(collectionitem);
         }
     }
 }
 public IExpr Access(string id)
 {
     if (this.ContainsKey(id))
     {
         return(this[id]);
     }
     else if (CanChangeMember)
     {
         var r = new CollectionItemValue(BuiltinValues.Null);
         this.Add(id, r);
         return(r);
     }
     else
     {
         ExceptionHelper.RaiseAccessFailed(Parent, id);
         return(default);
Esempio n. 4
0
        private void ShowDialogEditor(CollectionItemValue value, Editors.Editor editor)
        {
            // TODO: Finish DialogTemplate implementation

            value.Value = editor.ShowDialog(value.ParentProperty, value.Value, this);
        }