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