/// <summary> /// /// </summary> public void CloseAllBizPage() { if (null == this.tc_Manager || 0 == this.tc_Manager.Items.Count) { return; } foreach (var v in this.tc_Manager.Items) { TabItem ti = v as TabItem; if (null == ti) { continue; } IPageRuntime irp = ti.Content as IPageRuntime; if (null == irp) { continue; } if (dictTabItem.ContainsKey(irp.PageInfo.PageGuid)) { dictTabItem.Remove(irp.PageInfo.PageGuid); } irp.Dispose(); } this.tc_Manager.Items.Clear(); dictTabItem.Clear(); JudgeIsChildWindow(); }
/// <summary> /// /// </summary> public void CloseCurrentBizPage() { if (null == this.tc_Manager || 0 == this.tc_Manager.Items.Count) { return; } object selectedItem = this.tc_Manager.SelectedItem; if (null == selectedItem) { return; } this.tc_Manager.Items.Remove(selectedItem); TabItem ti = selectedItem as TabItem; IPageRuntime rp = ti.Content as IPageRuntime; rp.Dispose(); if (dictTabItem.ContainsKey(rp.PageInfo.PageGuid)) { dictTabItem.Remove(rp.PageInfo.PageGuid); } JudgeIsChildWindow(); }
/// <summary> /// /// </summary> /// <param name="iRuntime"></param> public void SetPageRuntimeInterface(IPageRuntime iRuntime) { this._IPageRuntime = iRuntime; }
/// <summary> /// /// </summary> /// <param name="iRuntime"></param> public virtual void SetPageRuntimeInterface(IPageRuntime iRuntime) { _IPageRuntime = iRuntime; }