Rev | Line | |
---|
[1146] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Text;
|
---|
| 4 | using IndianHealthService.BMXNet.Model;
|
---|
| 5 |
|
---|
| 6 | namespace IndianHealthService.BMXNet.WinForm.Model
|
---|
| 7 | {
|
---|
| 8 | internal class WinDivision : WinObject, SelectableDivision
|
---|
| 9 | {
|
---|
| 10 |
|
---|
| 11 | public override bool Equals(object obj)
|
---|
| 12 | {
|
---|
| 13 | WinDivision div = obj as WinDivision;
|
---|
| 14 | if (div == null)
|
---|
| 15 | {
|
---|
| 16 | return false;
|
---|
| 17 | }
|
---|
| 18 | else
|
---|
| 19 | {
|
---|
| 20 | return this.Ien.Equals(div.Ien);
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public override int GetHashCode()
|
---|
| 25 | {
|
---|
| 26 | return this.Ien.GetHashCode();
|
---|
| 27 | }
|
---|
| 28 | private String _name = null;
|
---|
| 29 |
|
---|
| 30 | public String Name
|
---|
| 31 | {
|
---|
| 32 | get { return _name; }
|
---|
| 33 | set { _name = value; }
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | private bool _mostRecentLookup = false;
|
---|
| 37 |
|
---|
| 38 | public bool MostRecentLookup
|
---|
| 39 | {
|
---|
| 40 | get { return _mostRecentLookup; }
|
---|
| 41 | set { _mostRecentLookup = value; }
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | public override string ToString()
|
---|
| 46 | {
|
---|
| 47 | return this.Name;
|
---|
| 48 | }
|
---|
| 49 | }
|
---|
| 50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.