private void Pin_MouseDown(uint nmbr)
 {
     setPINS(nmbr, !pins[nmbr]);
     ParentWindow.Set(Position_PINS, GetValue_PINS());
 }
 private void Reg_MouseDown(uint nmbr)
 {
     SetValue(nmbr, !reg[nmbr]);
     ParentWindow.Set(Position, GetValue());
 }