/// <summary> /// /// </summary> /// <param name="window"></param> public virtual void CreateWindow(AbstractWindow window) { window.AutoRender = false; var script = DefaultScriptBuilder.Create(window).Build(RenderMode.AddTo, this.ClientID + ".desktop", null, true, false, "showWindow", true); this.AddScript(script); }
protected virtual void AfterItemRemove(AbstractWindow window) { if (this.Desktop != null) { this.Desktop.Controls.Remove(window); this.Desktop.LazyItems.Remove(window); } }
/// <summary> /// /// </summary> /// <param name="window"></param> public virtual void CreateWindow(AbstractWindow window) { this.Call("createWindow", window.ToConfig()); }
/// <summary> /// /// </summary> /// <param name="window"></param> /// <param name="instanceOf"></param> public virtual void CreateWindow(AbstractWindow window, string instanceOf) { this.Call("createWindow", window.ToConfig(), JRawValue.From(instanceOf)); }