- Timestamp:
- Jan 17, 2011, 9:12:38 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs
r1065 r1068 54 54 private const int WM_VSCROLL = 0x115; // Vertical Scrolling Windows Message 55 55 56 public delegate void CGAppointmentChangedHandler(object sender, CGAppointmentChangedArgs e); 57 public event CGAppointmentChangedHandler CGAppointmentChanged; 56 58 public event CGAppointmentChangedHandler CGAppointmentAdded; 57 59 58 public event CGAppointmentChangedHandler CGAppointmentChanged; 59 60 public delegate void CGSelectionChangedHandler(object sender, CGSelectionChangedArgs e); 60 61 public event CGSelectionChangedHandler CGSelectionChanged; 61 62 … … 1172 1173 } 1173 1174 1175 public void PositionGrid(int nHour) 1176 { 1177 //Position grid to nHour 1178 int nRow = 0, nCol = 0; 1179 DateTime dStart = DateTime.Today; 1180 dStart = dStart.AddHours(nHour); 1181 this.GetCellFromTime(dStart, ref nRow, ref nCol, false, ""); 1182 int nHeight = this.CellHeight + 10; 1183 nHeight *= nRow; 1184 this.AutoScrollPosition = new Point(50, nHeight); 1185 this.Invalidate(); 1186 } 1187 1188 1174 1189 /// <summary> 1175 1190 /// The purpose of this is to properly draw the date boxes at the top of the calendar grid.
Note:
See TracChangeset
for help on using the changeset viewer.