private void PortBChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     Data.SetRegister(Data.Registers.PORTB, Data.BoolArrayToByte(View.PortB.ToArray <bool>()));
     UpdateUI();
 }
 private void TrisAChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     Data.SetRegister(Data.Registers.TRISA, Data.BoolArrayToByte(View.TrisA.ToArray <bool>()));
     UpdateUI();
 }