2 using System.Collections.Generic;
\r
10 internal class CItemInteger : CItemBase
\r
15 public bool b値がフォーカスされている;
\r
20 public CItemInteger()
\r
22 base.e種別 = CItemBase.E種別.整数;
\r
26 this.b値がフォーカスされている = false;
\r
28 public CItemInteger( string str項目名, int n最小値, int n最大値, int n初期値 )
\r
31 this.t初期化( str項目名, n最小値, n最大値, n初期値 );
\r
33 public CItemInteger( string str項目名, int n最小値, int n最大値, int n初期値, CItemBase.Eパネル種別 eパネル種別 )
\r
36 this.t初期化( str項目名, n最小値, n最大値, n初期値, eパネル種別 );
\r
42 public override void tEnter押下()
\r
44 this.b値がフォーカスされている = !this.b値がフォーカスされている;
\r
46 public override void t項目値を次へ移動()
\r
48 if( ++this.n現在の値 > this.n最大値 )
\r
50 this.n現在の値 = this.n最大値;
\r
53 public override void t項目値を前へ移動()
\r
55 if( --this.n現在の値 < this.n最小値 )
\r
57 this.n現在の値 = this.n最小値;
\r
60 public void t初期化( string str項目名, int n最小値, int n最大値, int n初期値 )
\r
62 this.t初期化( str項目名, n最小値, n最大値, n初期値, CItemBase.Eパネル種別.通常 );
\r
64 public void t初期化( string str項目名, int n最小値, int n最大値, int n初期値, CItemBase.Eパネル種別 eパネル種別 )
\r
66 base.t初期化( str項目名, eパネル種別 );
\r
70 this.b値がフォーカスされている = false;
\r