Пример #1
0
 private void LoadDefaultComponentTypes(UiManager uiManager)
 {
     uiManager.RegisterDefaultComponentType(typeof(string), typeof(ITextEditor));
     uiManager.RegisterDefaultComponentType(typeof(int), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(long), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(float), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(double), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(decimal), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(short), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(byte), typeof(INumberEditor));
     uiManager.RegisterDefaultComponentType(typeof(Color), typeof(IColorEditor));
     uiManager.RegisterDefaultComponentType(typeof(DateTime), typeof(IDateTimeEditor));
     uiManager.RegisterDefaultComponentType(typeof(Enum), typeof(IEnumEditor));
     uiManager.RegisterDefaultComponentType(typeof(bool), typeof(ICheckboxEditor));
 }
Пример #2
0
 /// <inheritdoc />
 public virtual void Load(UiManager uiManager)
 {
     LoadDefaultComponentTypes(uiManager);
 }