source: Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAppointments.cs@ 1082

Last change on this file since 1082 was 1075, checked in by Sam Habiel, 14 years ago

CalendarGrid: Handling for mouse scroll wheel added.
CGAppointments: Now supports Deep Cloning with Clone().
Updated Exes

File size: 1.8 KB
RevLine 
[622]1namespace IndianHealthService.ClinicalScheduling
2{
3 using System;
4 using System.Collections;
5 /// <summary>
6 /// This class was regenerated from Calendargrid.dll using Reflector.exe
7 /// by Sam Habiel for WorldVista. The original source code is lost.
8 /// </summary>
9 [Serializable]
[1073]10 public class CGAppointments : IEnumerable, ICloneable
[622]11 {
12 private Hashtable apptList = new Hashtable();
13
14 public void AddAppointment(CGAppointment appt)
15 {
16 if (this.apptList.ContainsKey(appt.AppointmentKey))
17 {
18 this.apptList.Remove(appt.AppointmentKey);
19 }
20 this.apptList.Add(appt.AppointmentKey, appt);
21 }
22
23 public void ClearAllAppointments()
24 {
25 this.apptList.Clear();
26 }
27
28 public CGAppointment GetAppointment(int nKey)
29 {
30 return (CGAppointment) this.apptList[nKey];
31 }
32
33 public IEnumerator GetEnumerator()
34 {
35 return this.apptList.GetEnumerator();
36 }
37
38 public void RemoveAppointment(int nKey)
39 {
40 this.apptList.Remove(nKey);
41 }
42
43 public int AppointmentCount
44 {
45 get
46 {
47 return this.apptList.Count;
48 }
49 }
50
51 public Hashtable AppointmentTable
52 {
53 get
54 {
55 return this.apptList;
56 }
57 }
[1073]58
[1075]59
[1073]60 public object Clone()
61 {
[1075]62 CGAppointments newappts = new CGAppointments();
63 //appts.apptList = (Hashtable)apptList.Clone();
64 foreach (DictionaryEntry d in this.apptList)
65 {
66 newappts.apptList.Add(d.Key, d.Value);
67 }
68
69 return newappts;
[1073]70 }
[622]71 }
72}
73
Note: See TracBrowser for help on using the repository browser.