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))); }
public InspectorTreeNode(IProperty property, IInspectorPropertyEditor editor, IFont font) { TreeNode = new AGSTreeNode <ITreeStringNode>(this); _item = new AGSStringItem(font); Text = property.Name; Property = property; Editor = editor; }
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; }
/// <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; }
public AGSTreeStringNode(string text, IFont font) { TreeNode = new AGSTreeNode <ITreeStringNode>(this); _item = new AGSStringItem(font); Text = text; }
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))); }
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) { }