public static IValueEditor GetEdititor(string view, InBase owner, JSC.JSValue schema) { IValueEditor rez; Func<InBase, JSC.JSValue, IValueEditor> ct; if(_editors.TryGetValue(view, out ct) && ct != null) { rez = ct(owner, schema); } else { rez = new veDefault(owner, schema); } return rez; }
public static IValueEditor GetEditor(string editor, InBase owner, JSC.JSValue manifest) { IValueEditor rez; Func <InBase, JSC.JSValue, IValueEditor> ct; if (editor != null && _editors.TryGetValue(editor, out ct) && ct != null) { rez = ct(owner, manifest); } else { rez = new veDefault(owner, manifest); } return(rez); }