source: Scheduling/branches/GUI1.2/CGCell.cs@ 1685

Last change on this file since 1685 was 622, checked in by Sam Habiel, 15 years ago

This update does the following:

File size: 2.6 KB
Line 
1namespace IndianHealthService.ClinicalScheduling
2{
3 using System;
4 using System.Drawing;
5 using System.Text;
6 /// <summary>
7 /// This class was regenerated from Calendargrid.dll using Reflector.exe
8 /// by Sam Habiel for WorldVista. The original source code is lost.
9 /// </summary>
10 public class CGCell
11 {
12 private Brush m_ApptTypeColor;
13 public bool m_bIsSelected;
14 private int m_Col;
15 private Rectangle m_Rectangle;
16 private int m_Row;
17 private string m_sKey;
18
19 public CGCell()
20 {
21 this.m_ApptTypeColor = Brushes.Cornsilk;
22 }
23
24 public CGCell(Rectangle r, int row, int col)
25 {
26 this.m_Rectangle = r;
27 this.m_Row = row;
28 this.m_Col = col;
29 this.m_sKey = BuildKey(this.m_Row, this.m_Col);
30 this.m_ApptTypeColor = Brushes.Cornsilk;
31 }
32
33 public static string BuildKey(int nRow, int nCol)
34 {
35 StringBuilder builder = new StringBuilder("r");
36 builder.Append(nRow.ToString());
37 builder.Append("c");
38 builder.Append(nCol.ToString());
39 return builder.ToString();
40 }
41
42 public Brush AppointmentTypeColor
43 {
44 get
45 {
46 return this.m_ApptTypeColor;
47 }
48 set
49 {
50 this.m_ApptTypeColor = value;
51 }
52 }
53
54 public int CellColumn
55 {
56 get
57 {
58 return this.m_Col;
59 }
60 set
61 {
62 this.m_Col = value;
63 this.m_sKey = BuildKey(this.m_Row, this.m_Col);
64 }
65 }
66
67 public Rectangle CellRectangle
68 {
69 get
70 {
71 return this.m_Rectangle;
72 }
73 set
74 {
75 this.m_Rectangle = value;
76 }
77 }
78
79 public int CellRow
80 {
81 get
82 {
83 return this.m_Row;
84 }
85 set
86 {
87 this.m_Row = value;
88 this.m_sKey = BuildKey(this.m_Row, this.m_Col);
89 }
90 }
91
92 public bool IsSelected
93 {
94 get
95 {
96 return this.m_bIsSelected;
97 }
98 set
99 {
100 this.m_bIsSelected = value;
101 }
102 }
103
104 public string Key
105 {
106 get
107 {
108 return this.m_sKey;
109 }
110 }
111 }
112}
113
Note: See TracBrowser for help on using the repository browser.