Changeset 1070 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
- Timestamp:
- Jan 18, 2011, 9:15:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r1065 r1070 113 113 { 114 114 this.m_dSelectedDate = value; 115 bool bRet = false;116 if (m_sResourcesArray.Count == 1)117 {118 bRet = this.WeekNeedsRefresh(1, m_dSelectedDate, out this.m_dStartDate, out this.m_dEndDate);119 }120 else121 {122 this.m_dStartDate = m_dSelectedDate;123 this.m_dEndDate = m_dSelectedDate;124 this.m_dEndDate = this.m_dEndDate.AddHours(23);125 this.m_dEndDate = this.m_dEndDate.AddMinutes(59);126 this.m_dEndDate = this.m_dEndDate.AddSeconds(59);127 }128 129 bRet = RefreshSchedule();130 115 } 131 116 } … … 303 288 } 304 289 305 p rivate void SetDate(DateTime dDate)306 { 307 308 if (m_ScheduleType == ScheduleType.Resource)309 310 bRet = this.WeekNeedsRefresh(2,dDate, out this.m_dStartDate, out this.m_dEndDate);311 312 313 314 this.m_dStartDate =dDate;315 this.m_dEndDate =dDate;316 317 318 319 290 public void RefreshDocument() 291 { 292 bool bRet = false; 293 if (m_sResourcesArray.Count == 1) 294 { 295 bRet = this.WeekNeedsRefresh(1, m_dSelectedDate, out this.m_dStartDate, out this.m_dEndDate); 296 } 297 else 298 { 299 this.m_dStartDate = m_dSelectedDate; 300 this.m_dEndDate = m_dSelectedDate; 301 this.m_dEndDate = this.m_dEndDate.AddHours(23); 302 this.m_dEndDate = this.m_dEndDate.AddMinutes(59); 303 this.m_dEndDate = this.m_dEndDate.AddSeconds(59); 304 } 320 305 321 306 bRet = RefreshSchedule(); 322 this.UpdateAllViews();323 }324 325 public void RefreshDocument()326 {327 bool bRet = RefreshSchedule();328 307 this.UpdateAllViews(); 329 308 } … … 356 335 CGView view = null; 357 336 //If this document already has a view, the use it 337 //SAM: Why do this again??? 358 338 Hashtable h = CGDocumentManager.Current.Views; 359 339 CGDocument d; … … 590 570 //TODO: Test that resource is not currently in list, that it IS a resource, etc 591 571 this.m_sResourcesArray.Add(sResource); 592 // UpdateAllViews: Redraws all the open views. But does not call server.593 this.UpdateAllViews();572 //SAM: removing: Remove UpdateAllViews: Redraws all the open views. But does not call server. 573 //this.UpdateAllViews(); 594 574 } 595 575
Note:
See TracChangeset
for help on using the changeset viewer.