private void EquipmentDetailControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { CurrentEquipmentInfo = e.NewValue as EquipmentInfo; OriginalEquipment = SettingHelper.Clone <EquipmentInfo>(OriginalEquipment); }
private static void OriginalEquipmentPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { (d as EquipmentDetailControl).CurrentEquipmentInfo = SettingHelper.Clone <EquipmentInfo>(e.NewValue as EquipmentInfo); }