|
Wersja 65, 1.4 KB
(wprowadzona przez dorota, 17 years temu)
|
|
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Text;
|
|---|
| 4 |
|
|---|
| 5 | namespace Baza_Reklam
|
|---|
| 6 | {
|
|---|
| 7 | class BoundItem
|
|---|
| 8 | {
|
|---|
| 9 |
|
|---|
| 10 | #region Fields (3)
|
|---|
| 11 |
|
|---|
| 12 | string displayMember;
|
|---|
| 13 | int IDEvalue;
|
|---|
| 14 | string stringValue;
|
|---|
| 15 |
|
|---|
| 16 | #endregion Fields
|
|---|
| 17 |
|
|---|
| 18 | #region Constructors (2)
|
|---|
| 19 |
|
|---|
| 20 | public BoundItem(int IDE, string displayValue)
|
|---|
| 21 | {
|
|---|
| 22 | this.displayMember = displayValue;
|
|---|
| 23 | this.IDEvalue = IDE;
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | public BoundItem(string stringValue, string displayValue)
|
|---|
| 27 | {
|
|---|
| 28 | this.displayMember = displayValue;
|
|---|
| 29 | this.stringValue = stringValue;
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | #endregion Constructors
|
|---|
| 33 |
|
|---|
| 34 | #region Properties (3)
|
|---|
| 35 |
|
|---|
| 36 | public string DisplayMember
|
|---|
| 37 | {
|
|---|
| 38 | get { return displayMember; }
|
|---|
| 39 | set { displayMember = value; }
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | public int IDEvalue1
|
|---|
| 43 | {
|
|---|
| 44 | get { return IDEvalue; }
|
|---|
| 45 | set { IDEvalue = value; }
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | public string StringValue
|
|---|
| 49 | {
|
|---|
| 50 | get { return stringValue; }
|
|---|
| 51 | set { stringValue = value; }
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | #endregion Properties
|
|---|
| 55 |
|
|---|
| 56 | #region Methods (1)
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | // Public Methods (1)
|
|---|
| 60 |
|
|---|
| 61 | public override string ToString()
|
|---|
| 62 | {
|
|---|
| 63 | return displayMember;
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | #endregion Methods
|
|---|
| 68 |
|
|---|
| 69 | }
|
|---|
| 70 | }
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.