Changeset 1071 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- Jan 19, 2011, 9:02:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1070 r1071 347 347 // 348 348 this.mnuRPMSServer.Index = 3; 349 this.mnuRPMSServer.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftS; 349 350 this.mnuRPMSServer.Text = "Change VistA &Server"; 350 351 this.mnuRPMSServer.Click += new System.EventHandler(this.mnuRPMSServer_Click); … … 353 354 // 354 355 this.mnuRPMSLogin.Index = 4; 356 this.mnuRPMSLogin.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftL; 355 357 this.mnuRPMSLogin.Text = "Change VistA &Login"; 356 358 this.mnuRPMSLogin.Click += new System.EventHandler(this.mnuRPMSLogin_Click); … … 359 361 // 360 362 this.mnuRPMSDivision.Index = 5; 363 this.mnuRPMSDivision.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftD; 361 364 this.mnuRPMSDivision.Text = "Change VistA &Division"; 362 365 this.mnuRPMSDivision.Click += new System.EventHandler(this.mnuRPMSDivision_Click); … … 1544 1547 //We are doing this--Again? 1545 1548 v =this.DocManager.GetViewByResource(sSelectedTreeResourceArray); 1546 v.dateTimePicker1.Value = dDate; 1549 1550 //Position the Grid 1551 //XXX: This must be a better way to do this. 1552 v.dateTimePicker1.Value = dDate; 1553 v.StartDate = doc.StartDate; 1547 1554 1548 1555 //Get preferred time scale from resource info … … 2376 2383 2377 2384 this.SetDesktopLocation(this.DesktopLocation.X + 10, this.DesktopLocation.Y + 10); 2385 2386 //Show the Form 2387 this.Activate(); 2378 2388 } 2379 2389 … … 3094 3104 // Change Date on Document 3095 3105 this.Document.SelectedDate = dDate; 3096 3106 3107 // Do we need to update? 3108 bool isRefreshNeeded = this.Document.IsRefreshNeeded(); 3109 3097 3110 //Splash when loading and change Cursor 3098 this.Cursor = Cursors.WaitCursor; 3099 LoadSplash(); 3100 3101 this.Cursor = Cursors.Default; 3102 this.Document.RefreshDocument(); 3103 3111 if (isRefreshNeeded) 3112 { 3113 this.Cursor = Cursors.WaitCursor; 3114 LoadSplash(); 3115 this.Document.RefreshDocument(); 3116 StopSplash(); 3117 this.Cursor = Cursors.Default; 3118 } 3119 3120 3104 3121 if (this.Document.Resources.Count == 1) 3105 3122 { … … 3123 3140 //XXX: Need to investigate 3124 3141 this.Document.UpdateAllViews(); 3125 3126 StopSplash();3127 this.Cursor = Cursors.Default;3128 3142 } 3129 3143
Note:
See TracChangeset
for help on using the changeset viewer.