1 | namespace 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]
|
---|
10 | public class CGAppointments : IEnumerable, ICloneable
|
---|
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 | }
|
---|
58 |
|
---|
59 |
|
---|
60 | public object Clone()
|
---|
61 | {
|
---|
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;
|
---|
70 | }
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|