Ignore:
Timestamp:
Jan 20, 2011, 9:32:28 AM (13 years ago)
Author:
Sam Habiel
Message:

calendarGrid: Removed MouseEnter event and added it to CGView which now has to handle it properly.
CGAppointments: now supports cloning.
CGDocument: Added RefreshDocumentAsync, which retrives data from the server w/o asking the grid to refersh.
CGDocumentManager: CGView.InitializeDocView does not take appointments as argument; callers are changed.
CGView: Many Changes:

  • Opening a Schedule nows calls up a splash and a wait cursor while loading.
  • Events coming from the server are now handled asynchronously (not on UI thread). This results in much better responsiveness.
  • Appointments, Availabilities, Resources are all set in the CalendarGrid by UpdateArrays; as a centralized point of drawing the grid.
  • A mistaken "feature"--stealing focus from each others windows, was removed--CalendarGrid.Focus event only fired now if the form is the Active Form. This is accomplished using GetActiveWindow() from user32.dll (a Win32 API).

LoadingSplash: Opacity removed; form resized.

File:
1 edited

Legend:

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

    r1071 r1073  
    270270        }
    271271
    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()
    274276        {
    275277            bool bRet = false;
     
    290292
    291293            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           
    292317            this.UpdateAllViews();
    293318        }
     
    344369                        this.DocManager,
    345370                        m_dStartDate,
    346                         this.Appointments,
    347371                        this.DocName);
    348372
Note: See TracChangeset for help on using the changeset viewer.