private static void TypeOfCharacterTable_PropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StringByteControl ctrl = d as StringByteControl; ctrl.UpdateLabelFromByte(); ctrl.UpdateHexString(); }
private static void Byte_PropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StringByteControl ctrl = d as StringByteControl; if (e.NewValue != e.OldValue) { if (ctrl.Action != ByteAction.Nothing && ctrl.InternalChange == false) { ctrl.StringByteModified?.Invoke(ctrl, new EventArgs()); } ctrl.UpdateLabelFromByte(); ctrl.UpdateHexString(); ctrl.UpdateBackGround(); } }