public void Load(ResourceMono resource, System.Action <WindowObjectElement> onItem = null, bool async = false) { this.Load(resource, callback: (WindowComponent comp) => {}, onItem: onItem, async: async); }
public void Load(ResourceMono resource, System.Action <WindowComponent> callback, System.Action <WindowObjectElement> onItem = null, bool async = false) { this.activatorInstance.SetComponent(resource); this.activatorInstance.Create(this.GetWindow(), this as WindowLayoutElement, callback, async, onItem); }
public void Load <T>(ResourceMono resource, System.Action <T> callback, System.Action <WindowObjectElement> onItem = null, bool async = false) where T : WindowComponent { this.Load(resource, callback: (WindowComponent comp) => callback.Invoke(comp as T), onItem: onItem, async: async); }