Exemple #1
0
 public int GetOnOff(Form1.OnOff _i)
 {
     return(!this.m_OnOffValues[(int)_i] ? 0 : 1);
 }
Exemple #2
0
 public void SetOnOff(Form1.OnOff _i, int _val)
 {
     this.m_OnOffValues[(int)_i] = _val == 1;
 }
Exemple #3
0
 public Ref <bool> GetRef(Form1.OnOff _index)
 {
     return(new Ref <bool>((Func <bool>)(() => this.m_OnOffValues[(int)_index]), (Action <bool>)(v => this.m_OnOffValues[(int)_index] = v)));
 }