Пример #1
0
 /// <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();
 }
Пример #2
0
        /// <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();
        }
Пример #3
0
 /// <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;
 }