Ejemplo n.º 1
0
        private Task <SelectEditor.ReturnValue> getValue(IStringItem item, IProperty property, Action closeCombobox)
        {
            closeCombobox();
            ComboItem typeItem = (ComboItem)item;

            return(typeItem.Implementation?.Create(_parentForm, typeItem.Title) ?? Task.FromResult(new SelectEditor.ReturnValue(new ValueModel(null, type: property.PropertyType), false)));
        }
Ejemplo n.º 2
0
 public InspectorTreeNode(IProperty property, IInspectorPropertyEditor editor, IFont font)
 {
     TreeNode = new AGSTreeNode <ITreeStringNode>(this);
     _item    = new AGSStringItem(font);
     Text     = property.Name;
     Property = property;
     Editor   = editor;
 }
Ejemplo n.º 3
0
 public InspectorTreeNode(IProperty property, IInspectorPropertyEditor editor, IFont font, bool isCategory)
 {
     TreeNode   = new AGSTreeNode <ITreeStringNode>(this);
     _item      = new AGSStringItem(font);
     Text       = property.DisplayName;
     Property   = property;
     Editor     = editor;
     IsCategory = isCategory;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:AGS.API.ListboxItemArgs"/> class.
 /// </summary>
 /// <param name="item">Item.</param>
 /// <param name="index">Index.</param>
 public ListboxItemArgs(IStringItem item, int index)
 {
     Item  = item;
     Index = index;
 }
Ejemplo n.º 5
0
 public AGSTreeStringNode(string text, IFont font)
 {
     TreeNode = new AGSTreeNode <ITreeStringNode>(this);
     _item    = new AGSStringItem(font);
     Text     = text;
 }
Ejemplo n.º 6
0
        private Task <SelectEditor.ReturnValue> getValue(IStringItem item, IProperty property, Action closeCombobox)
        {
            var comboItem = (ComboItem)item;

            return(Task.FromResult(new SelectEditor.ReturnValue(new ValueModel(comboItem.Value), false)));
        }
Ejemplo n.º 7
0
 public AGSTreeStringNode()
 {
     TreeNode = new AGSTreeNode <ITreeStringNode>(this);
     _item    = new AGSStringItem();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:AGS.API.ListboxItemChangingArgs"/> class.
 /// </summary>
 /// <param name="item">Item.</param>
 /// <param name="index">Index.</param>
 public ListboxItemChangingArgs(IStringItem item, int index) : base(item, index)
 {
 }