Changeset 1073 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
- Timestamp:
- Jan 20, 2011, 9:32:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r1071 r1073 270 270 } 271 271 272 273 public void RefreshDocument() 272 //sam: This is a test that duplicates RefreshDocument, but without the UpdateAllViews, 273 // as that has to be done synchornously. 274 //XXXXXX: Needs to be refactored obviously, but now for testing. 275 public void RefreshDocumentAsync() 274 276 { 275 277 bool bRet = false; … … 290 292 291 293 bRet = RefreshSchedule(); 294 } 295 296 297 public void RefreshDocument() 298 { 299 bool bRet = false; 300 if (m_sResourcesArray.Count == 0) 301 return; 302 if (m_sResourcesArray.Count == 1) 303 { 304 bRet = this.WeekNeedsRefresh(1, m_dSelectedDate, out this.m_dStartDate, out this.m_dEndDate); 305 } 306 else 307 { 308 this.m_dStartDate = m_dSelectedDate; 309 this.m_dEndDate = m_dSelectedDate; 310 this.m_dEndDate = this.m_dEndDate.AddHours(23); 311 this.m_dEndDate = this.m_dEndDate.AddMinutes(59); 312 this.m_dEndDate = this.m_dEndDate.AddSeconds(59); 313 } 314 315 bRet = RefreshSchedule(); 316 292 317 this.UpdateAllViews(); 293 318 } … … 344 369 this.DocManager, 345 370 m_dStartDate, 346 this.Appointments,347 371 this.DocName); 348 372
Note:
See TracChangeset
for help on using the changeset viewer.