Changeset 1127


Ignore:
Timestamp:
Mar 30, 2011, 6:54:56 AM (13 years ago)
Author:
Sam Habiel
Message:

CGView: Added menuitem and handler for Refresh. Invoke using F5.
New exes.

Location:
Scheduling/trunk/cs/bsdx0200GUISourceCode
Files:
5 edited

Legend:

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

    r1126 r1127  
    104104        private MenuItem ctxPrintScheduleT1;
    105105        private MenuItem ctxPrintScheduleT3;
     106        private MenuItem menuItem12;
     107        private MenuItem mnuRefresh;
    106108        private IContainer components;
    107109
     
    216218            this.mnuViewScheduleTree = new System.Windows.Forms.MenuItem();
    217219            this.mnuViewRightPanel = new System.Windows.Forms.MenuItem();
     220            this.menuItem12 = new System.Windows.Forms.MenuItem();
     221            this.mnuRefresh = new System.Windows.Forms.MenuItem();
    218222            this.mnuHelp = new System.Windows.Forms.MenuItem();
    219223            this.mnuHelpAbout = new System.Windows.Forms.MenuItem();
     
    503507            this.mnuTimeScale,
    504508            this.mnuViewScheduleTree,
    505             this.mnuViewRightPanel});
     509            this.mnuViewRightPanel,
     510            this.menuItem12,
     511            this.mnuRefresh});
    506512            this.mnuCalendar.Text = "&View";
    507513            //
     
    592598            this.mnuViewRightPanel.Text = "&Appointment Clipboard";
    593599            this.mnuViewRightPanel.Click += new System.EventHandler(this.mnuViewRightPanel_Click);
     600            //
     601            // menuItem12
     602            //
     603            this.menuItem12.Index = 8;
     604            this.menuItem12.Text = "-";
     605            //
     606            // mnuRefresh
     607            //
     608            this.mnuRefresh.Index = 9;
     609            this.mnuRefresh.Shortcut = System.Windows.Forms.Shortcut.F5;
     610            this.mnuRefresh.Text = "Refresh Data";
     611            this.mnuRefresh.Click += new System.EventHandler(this.mnuRefresh_Click);
    594612            //
    595613            // mnuHelp
     
    21122130            foreach (CGAppointment a in this.calendarGrid1.SelectedAppointments.AppointmentTable.Values)
    21132131            {
     2132
    21142133                string msg; //out var
    21152134                bool didweSucceed = Document.AppointmentUndoCheckin(a, out msg);
     
    34223441        }
    34233442
     3443        private void mnuRefresh_Click(object sender, EventArgs e)
     3444        {
     3445            ForceRefreshGrid();
     3446        }
    34243447
    34253448        #endregion events
     
    34713494        }
    34723495
     3496        /// <summary>
     3497        /// This forces a grid refresh.
     3498        /// </summary>
     3499        void ForceRefreshGrid()
     3500        {
     3501            if (this.Document.m_sResourcesArray.Count == 0) return;
     3502            this.Cursor = Cursors.WaitCursor;
     3503            LoadSplash();
     3504            this.Document.RefreshDocument();
     3505            this.UpdateArrays();
     3506            StopSplash();
     3507            this.Cursor = Cursors.Default;
     3508        }
     3509
    34733510        LoadingSplash _loadingSplash; // Splash object a data point in class
    34743511
     
    35093546
    35103547
     3548
     3549
    35113550    }//End class
    35123551}
Note: See TracChangeset for help on using the changeset viewer.