private void dock_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { if (e.NewWindow is DocumentWindow && e.NewWindow.Name != "startpageDocument") { Workspace.OpenedDocuments.Remove(e.NewWindow.Text); } }
private void radDock_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { lstSavedLogs.SelectedIndex = -1; if (e.NewWindow.Text.Contains("*")) { RadPageControl pageControl = e.NewWindow.Controls["RadPageControl"] as RadPageControl; if (pageControl != null) { frmSavePath frm = new frmSavePath(pageControl.FilePath) { Text = e.NewWindow.Text }; frm.ShowDialog(); frm.Dispose(); } } }
private void radDock1_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { string szActive = radDock1.ActiveWindow.Text; switch (szActive) { case "User List": UserDockWindow = null; break; case "Student List": StudentDockWindow = null; break; case "Teacher List": TeacherDockWindow = null; break; case "Building List": BuildingDockWindow = null; break; case "Learning Areas List": LearningAreaDockWindow = null; break; case "Time Slots": TimeslotDockWindow = null; break; case "Manage School Year": SYDockWindow = null; break; case "Curriculum": CurriculumDockWindow = null; break; default: break; } //if (szActive.Equals("User List")) // UserDockWindow = null; //if (szActive.Equals("Student List")) // StudentDockWindow = null; }
void _radDock_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { _linkableViewerManager.Unlink(e.NewWindow as ILinkableViewer); if (e.NewWindow is IStatResultDisplayWindow) { (e.NewWindow as Telerik.WinControls.IGeoDoFree).Free(); } else if (e.NewWindow is ICanvasViewer) { ICanvasViewer canViewer = e.NewWindow as ICanvasViewer; IRasterDrawing rd = canViewer.ActiveObject as IRasterDrawing; IGeoPanAdjust adjust = rd as IGeoPanAdjust; if (adjust != null && adjust.IsHasUnsavedGeoAdjusted) { DialogResult ret = MsgBox.ShowQuestionYesNoCancel("当前影像的平移校正结果未保存,请确认是否保存?\n按【是】保存。\n按【否】不保存。\n按【取消】返回。"); if (ret == DialogResult.Cancel) { e.Cancel = true; return; } else if (ret == DialogResult.Yes) { adjust.Save(); } else { adjust.Cancel(); } } //退出平移校正状态 ICommand cmd = _session.CommandEnvironment.Get(30006); if (cmd != null) { cmd.Execute(); } //退出平移校正2状态 ICommand cmd2 = _session.CommandEnvironment.Get(30106); if (cmd2 != null) { cmd2.Execute(); } } }
private void radDock1_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { string szActive = radDock1.ActiveWindow.Text; switch (szActive) { case "User List": UserDockWindow = null; break; case "Student List": StudentDockWindow = null; break; case "Teacher List": TeacherDockWindow = null; break; case "Building List": BuildingDockWindow = null; break; case "Learning Areas List": LearningAreaDockWindow = null; break; case "Time Slots": TimeslotDockWindow = null; break; case "Manage Curriculum": CurriculumDockWindow = null; break; case "List of Traits": TraitDockWindow = null; break; case "Scholarship List": ScholarshipDockWindow = null; break; case "List of Student Fees": StudentFeeDockWindow = null; break; case "List of HomeRoom Information": GradeSectionDockWindow = null; break; case "Student List Selection": PermanentRecordDockWindow = null; break; default: break; } }
private void radDock1_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e) { this.AddLog("Active window changing; current active window: " + e.NewWindow, true); }
private void radDock1_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { string szActive = radDock1.ActiveWindow.Text; switch (szActive) { case "User List": UserDockWindow = null; break; case "Student List": StudentDockWindow = null; break; case "Faculty and Staff List": TeacherDockWindow = null; break; case "Building List": BuildingDockWindow = null; break; case "Learning Areas List": LearningAreaDockWindow = null; break; case "Time Slots": TimeslotDockWindow = null; break; case "Manage Curriculum": CurriculumDockWindow = null; break; case "List of Traits": TraitDockWindow = null; break; case "Scholarship List": ScholarshipDockWindow = null; break; case "List of Student Fees": StudentFeeDockWindow = null; break; case "List of HomeRoom Information": GradeSectionDockWindow = null; break; case "Student List Selection": PermanentRecordDockWindow = null; break; case "List of Subjects Load": TeacherLoadingWindow = null; break; case "List of Advisory Classes": AdvisoryListDockWindow = null; break; default: break; } }
private void radDock1_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e) { e.Cancel = e.NewWindow is DocumentWindow; }