Changeset 1027 for Scheduling


Ignore:
Timestamp:
Nov 24, 2010, 1:42:07 AM (14 years ago)
Author:
Sam Habiel
Message:

calendarGrid now inherits from ScrollableControl rather than Panel to support easy mouse scrolling. Don't know if this works on Windows XP yet.

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

Legend:

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

    r964 r1027  
    655655            this.tvSchedules.Sorted = true;
    656656            this.tvSchedules.TabIndex = 1;
     657            this.tvSchedules.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvSchedules_BeforeSelect);
     658            this.tvSchedules.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvSchedules_AfterSelect);
     659            this.tvSchedules.Click += new System.EventHandler(this.tvSchedules_Click);
    657660            this.tvSchedules.DoubleClick += new System.EventHandler(this.tvSchedules_DoubleClick);
    658             this.tvSchedules.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvSchedules_AfterSelect);
    659             this.tvSchedules.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvSchedules_BeforeSelect);
    660             this.tvSchedules.Click += new System.EventHandler(this.tvSchedules_Click);
    661661            //
    662662            // contextMenu1
     
    722722            this.lstClip.Location = new System.Drawing.Point(0, 32);
    723723            this.lstClip.Name = "lstClip";
    724             this.lstClip.Size = new System.Drawing.Size(128, 407);
     724            this.lstClip.Size = new System.Drawing.Size(128, 416);
    725725            this.lstClip.TabIndex = 0;
    726726            this.lstClip.SelectedIndexChanged += new System.EventHandler(this.lstClip_SelectedIndexChanged);
    727727            this.lstClip.DragDrop += new System.Windows.Forms.DragEventHandler(this.lstClip_DragDrop);
     728            this.lstClip.DragEnter += new System.Windows.Forms.DragEventHandler(this.lstClip_DragEnter);
     729            this.lstClip.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstClip_MouseDown);
    728730            this.lstClip.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lstClip_MouseMove);
    729             this.lstClip.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstClip_MouseDown);
    730             this.lstClip.DragEnter += new System.Windows.Forms.DragEventHandler(this.lstClip_DragEnter);
    731731            //
    732732            // ctxApptClipMenu
     
    822822            this.calendarGrid1.TabIndex = 0;
    823823            this.calendarGrid1.TimeScale = 20;
     824            this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded);
     825            this.calendarGrid1.CGAppointmentChanged += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentChanged);
     826            this.calendarGrid1.CGSelectionChanged += new IndianHealthService.ClinicalScheduling.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged);
    824827            this.calendarGrid1.DoubleClick += new System.EventHandler(this.calendarGrid1_DoubleClick);
    825             this.calendarGrid1.CGSelectionChanged += new IndianHealthService.ClinicalScheduling.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged);
    826             this.calendarGrid1.CGAppointmentChanged += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentChanged);
    827             this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded);
    828828            //
    829829            // ctxCalendarGrid
     
    962962            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
    963963            this.Text = "CGView";
    964             this.CursorChanged += new System.EventHandler(this.CGView_CursorChanged);
    965             this.Load += new System.EventHandler(this.CGView_Load);
    966964            this.Activated += new System.EventHandler(this.CGView_Activated);
    967965            this.Closing += new System.ComponentModel.CancelEventHandler(this.CGView_Closing);
     966            this.Load += new System.EventHandler(this.CGView_Load);
     967            this.CursorChanged += new System.EventHandler(this.CGView_CursorChanged);
    968968            this.panelRight.ResumeLayout(false);
    969969            this.panelClip.ResumeLayout(false);
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs

    r1011 r1027  
    1313    /// This class is reponsible for rendering the Calendar Grid.
    1414    /// </summary>
    15     public class CalendarGrid : Panel
     15    public class CalendarGrid : ScrollableControl
    1616    {
    1717        private IContainer components;
Note: See TracChangeset for help on using the changeset viewer.