private void XtraTabbedMdiManager_PageRemoved(object sender, MdiTabPageEventArgs e) { if (((XtraTabbedMdiManager)sender).Pages.Count == 0) { imgArkaPlanResim.BringToFront(); } }
private void xtraTabbedMdiManager1_SelectedPageChanged(object sender, EventArgs e) { MdiTabPageEventArgs pa = (MdiTabPageEventArgs)e; bool isRibbonPageVisible = false; foreach (RibbonPage page in ribbonControlMain.Pages) { if (!string.IsNullOrEmpty(string.Format("{0}", page.Tag))) { if (!string.IsNullOrEmpty(string.Format("{0}", pa.Page))) { isRibbonPageVisible = pa.Page.Text.Equals(page.Tag); } page.Visible = isRibbonPageVisible; if (isRibbonPageVisible) { ribbonControlMain.SelectedPage = page; } } } ribbonPage1.Visible = true; ribbonPage2.Visible = true; }
private void xtab_manager_PageAdded(object sender, MdiTabPageEventArgs e) { if (e.Page.Text == "首页") { e.Page.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False; } }
private void pageRemoved(object sender, MdiTabPageEventArgs e) { var activeView = viewFromPage(e); if (activeView == null) { return; } }
void tabbedMdiManager_PageRemoved(object sender, MdiTabPageEventArgs e) { this.parentMdiForm.SuspendLayout(); this.parentMdiForm.PerformLayout(null, null); this.parentMdiForm.ResumeLayout(false); }
/// <summary> /// TabPage关闭时的处理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void xtraTabbedMdiMgr_PageRemoved(object sender, MdiTabPageEventArgs e) { if (xtraTabbedMdiMgr.Pages.Count == 0) { // 显示封面 peCover.BringToFront(); peCover.Visible = true; } }
private void pageAdded(object sender, MdiTabPageEventArgs e) { var activeView = viewFromPage(e); if (activeView == null) { return; } e.Page.Image = activeView.ApplicationIcon.ToImage(IconSizes.Size16x16); }
private void mdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { XtraMdiTabPage page = e.Page; if (page != null) { //if (page.MdiChild.Tag.ToString() == "main") return; FormList.Remove(page.MdiChild.Tag.ToString()); } }
private void xtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { if (this.MdiChildren.Length == 0) { picBack.Visible = true; } else { picBack.Visible = false; } }
private void xtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { chartGender.Series.RemoveAt(0); chartGender.Series.RemoveAt(0); chartNewDaily.Series.RemoveAt(0); chartNewDaily.Series.RemoveAt(0); chartSocial.Series.RemoveAt(0); chartOffers.Series.RemoveAt(0); chartSessions.Series.RemoveAt(0); showSharts(true); fillCharts(); }
private void xtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { try { if (tabMDI.Pages.Count <= 0) { picLayout.BringToFront(); } } catch { picLayout.SendToBack(); } }
private void xtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { XtraTabbedMdiManager xtraTabbedMdiManager = ((XtraTabbedMdiManager)sender); PageFormModel deletePageFormModel = null; foreach (KeyValuePair <string, PageFormModel> kvp in LiContexts.LiContext.pageFormModels) { if (xtraTabbedMdiManager.Pages[kvp.Value.liForm] == null) { deletePageFormModel = kvp.Value; } } if (deletePageFormModel != null) { LiContexts.LiContext.pageFormModels.Remove(deletePageFormModel.ToString()); } }
private void XtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { //受控件事件影响只能是遍历XtraTabbedMdiManager1来删除了 Dictionary <string, XtraFormBase> temp = new Dictionary <string, XtraFormBase>(); foreach (var i in xForms) { for (int n = 0; n < xtraTabbedMdiManager1.Pages.Count; n++) { if (xtraTabbedMdiManager1.Pages[n].Text == i.Key) { temp.Add(i.Key, i.Value); } } } xForms.Clear(); xForms = temp; }
private void xtab_manager_PageRemoved(object sender, MdiTabPageEventArgs e) { //XtraMdiTabPage curPage = (sender as XtraTabbedMdiManager).SelectedPage; ////导航主界面不能关闭 //if (this.MdiChildren.Length > 0) //{ // if (curPage.Text == "系统导航") return; // // 限制只有在同一个页签上双击才能关闭.(规避两个页签切换时点太快导致意外关闭页签) // //if (curPage.Equals(m_lastPage)) // //{ // // //if (this.ActiveMdiChild != m_MapForm) // // //{ // // this.ActiveMdiChild.Close(); // // //} // //} //} }
void tabbedMdiManager_PageAdded(object sender, MdiTabPageEventArgs e) { XtraWindowSmartPartInfo smartPartInfo = (XtraWindowSmartPartInfo)e.Page.MdiChild.Tag; if (smartPartInfo != null && string.IsNullOrEmpty(smartPartInfo.Description) == false) { e.Page.SuperTip = new DevExpress.Utils.SuperToolTip(); e.Page.SuperTip.Items.AddTitle("提示"); e.Page.SuperTip.Items.Add(smartPartInfo.Description); } if (this.PageAdded != null) { this.PageAdded(sender, e); } if (smartPartInfo.Title.Equals("邮件") || smartPartInfo.Title.Equals("Email")) { e.Page.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False; } }
/// <summary> /// Handles the PageRemoved event of the ctrMdiMain control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DevExpress.XtraTabbedMdi.MdiTabPageEventArgs"/> instance containing the event data.</param> private void ctrMdiMain_PageRemoved(object sender, MdiTabPageEventArgs e) { try { if (ctrMdiMain.SelectedPage != null) { XtraFormPL form = (XtraFormPL)ctrMdiMain.SelectedPage.MdiChild; SetStatus(form); } } catch { } }
private void xtraTabbedMdiManager1_PageAdded(object sender, MdiTabPageEventArgs e) { e.Page.Pinned = true; }
private void xtraTabbedMdiManager1_PageAdded(object sender, MdiTabPageEventArgs e) { picLayout.SendToBack(); }
private void xtraTabbedMdiManager1_PageRemoved(object sender, MdiTabPageEventArgs e) { showCharts(true); fillCharts(); }
void tabbedMdiManager_PageAdded(object sender, MdiTabPageEventArgs e) { e.Page.Image = e.Page.MdiChild.Icon.ToBitmap(); }
private void XtraTabbedMdiManager_PageAdded(object sender, MdiTabPageEventArgs e) { imgArkaPlanResim.SendToBack(); }
private void MdiManager_PageAdded(object sender, MdiTabPageEventArgs e) { XtraMdiTabPage page = e.Page; page.Tooltip = "Tooltip for the page " + page.Text; }
void xmdi_PageAdded(object sender, MdiTabPageEventArgs e) { var xtraTabbedMdiManager1 = sender as XtraTabbedMdiManager; xtraTabbedMdiManager1.Pages[xtraTabbedMdiManager1.Pages.Count - 1].Appearance.Header.BackColor = TabColor[(xtraTabbedMdiManager1.Pages.Count) % 6]; }
private void MdiManager_PageAdded(object sender, MdiTabPageEventArgs e) { e.Page.Image = new Bitmap(e.Page.MdiChild.Icon.ToBitmap(), 16, 16); }
private IMdiChildView viewFromPage(MdiTabPageEventArgs e) { return(viewFromPage(e.Page)); }
private void myTabbedMdiManager1_PageAdded(object sender, MdiTabPageEventArgs e) { XtraTabbedMdiManager tabbedMdi = (XtraTabbedMdiManager)sender; e.Page.ImageIndex = tabbedMdi.Pages.Count - 1; }