Ignore:
Timestamp:
Jan 18, 2011, 9:15:22 AM (13 years ago)
Author:
Sam Habiel
Message:

LoadingSplash: New Form that does... pretty much nothing. Just shows a splash when updating data from server.
CGView:

CGDocumentManager:

CGDocument:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs

    r1065 r1070  
    113113                        {
    114114                                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                                 else
    121                                 {
    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();
    130115                        }
    131116                }
     
    303288                }
    304289
    305                 private void SetDate(DateTime dDate)
    306                 {
    307                         bool bRet = false;
    308                         if (m_ScheduleType == ScheduleType.Resource)
    309                         {
    310                                 bRet = this.WeekNeedsRefresh(2,dDate, out this.m_dStartDate, out this.m_dEndDate);
    311                         }
    312                         else
    313                         {
    314                                 this.m_dStartDate = dDate;
    315                                 this.m_dEndDate = dDate;
    316                                 this.m_dEndDate = this.m_dEndDate.AddHours(23);
    317                                 this.m_dEndDate = this.m_dEndDate.AddMinutes(59);
    318                                 this.m_dEndDate = this.m_dEndDate.AddSeconds(59);
    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            }
    320305
    321306                        bRet = RefreshSchedule();
    322                         this.UpdateAllViews();
    323                 }
    324 
    325                 public void RefreshDocument()
    326                 {
    327                         bool bRet = RefreshSchedule();
    328307                        this.UpdateAllViews();
    329308                }
     
    356335                                CGView view = null;
    357336                                //If this document already has a view, the use it
     337                //SAM: Why do this again???
    358338                                Hashtable h = CGDocumentManager.Current.Views;         
    359339                                CGDocument d;
     
    590570                        //TODO:  Test that resource is not currently in list, that it IS a resource, etc
    591571                        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();
    594574                }
    595575
Note: See TracChangeset for help on using the changeset viewer.