private void CmdOK_Executed(object sender, ExecutedRoutedEventArgs evt) { DeviceData.CopyTo(origDevice, false, true); DialogResult = true; }