Changeset 1127 for Scheduling/trunk/cs/bsdx0200GUISourceCode
- Timestamp:
- Mar 30, 2011, 6:54:56 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1126 r1127 104 104 private MenuItem ctxPrintScheduleT1; 105 105 private MenuItem ctxPrintScheduleT3; 106 private MenuItem menuItem12; 107 private MenuItem mnuRefresh; 106 108 private IContainer components; 107 109 … … 216 218 this.mnuViewScheduleTree = new System.Windows.Forms.MenuItem(); 217 219 this.mnuViewRightPanel = new System.Windows.Forms.MenuItem(); 220 this.menuItem12 = new System.Windows.Forms.MenuItem(); 221 this.mnuRefresh = new System.Windows.Forms.MenuItem(); 218 222 this.mnuHelp = new System.Windows.Forms.MenuItem(); 219 223 this.mnuHelpAbout = new System.Windows.Forms.MenuItem(); … … 503 507 this.mnuTimeScale, 504 508 this.mnuViewScheduleTree, 505 this.mnuViewRightPanel}); 509 this.mnuViewRightPanel, 510 this.menuItem12, 511 this.mnuRefresh}); 506 512 this.mnuCalendar.Text = "&View"; 507 513 // … … 592 598 this.mnuViewRightPanel.Text = "&Appointment Clipboard"; 593 599 this.mnuViewRightPanel.Click += new System.EventHandler(this.mnuViewRightPanel_Click); 600 // 601 // menuItem12 602 // 603 this.menuItem12.Index = 8; 604 this.menuItem12.Text = "-"; 605 // 606 // mnuRefresh 607 // 608 this.mnuRefresh.Index = 9; 609 this.mnuRefresh.Shortcut = System.Windows.Forms.Shortcut.F5; 610 this.mnuRefresh.Text = "Refresh Data"; 611 this.mnuRefresh.Click += new System.EventHandler(this.mnuRefresh_Click); 594 612 // 595 613 // mnuHelp … … 2112 2130 foreach (CGAppointment a in this.calendarGrid1.SelectedAppointments.AppointmentTable.Values) 2113 2131 { 2132 2114 2133 string msg; //out var 2115 2134 bool didweSucceed = Document.AppointmentUndoCheckin(a, out msg); … … 3422 3441 } 3423 3442 3443 private void mnuRefresh_Click(object sender, EventArgs e) 3444 { 3445 ForceRefreshGrid(); 3446 } 3424 3447 3425 3448 #endregion events … … 3471 3494 } 3472 3495 3496 /// <summary> 3497 /// This forces a grid refresh. 3498 /// </summary> 3499 void ForceRefreshGrid() 3500 { 3501 if (this.Document.m_sResourcesArray.Count == 0) return; 3502 this.Cursor = Cursors.WaitCursor; 3503 LoadSplash(); 3504 this.Document.RefreshDocument(); 3505 this.UpdateArrays(); 3506 StopSplash(); 3507 this.Cursor = Cursors.Default; 3508 } 3509 3473 3510 LoadingSplash _loadingSplash; // Splash object a data point in class 3474 3511 … … 3509 3546 3510 3547 3548 3549 3511 3550 }//End class 3512 3551 }
Note:
See TracChangeset
for help on using the changeset viewer.