public int GetOnOff(Form1.OnOff _i) { return(!this.m_OnOffValues[(int)_i] ? 0 : 1); }
public void SetOnOff(Form1.OnOff _i, int _val) { this.m_OnOffValues[(int)_i] = _val == 1; }
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))); }