private void SetCameraPlayerState(CameraPlayer player) { DeviceLooks devLook = DevLooksManager.SelectedItem; if (devLook != null) { // player.Tips = devLook.Name; } }
private void RadioButton_Checked(object sender, System.Windows.RoutedEventArgs e) { RadioButton radioButton = sender as RadioButton; if (radioButton != null) { DeviceLooks deviceLook = radioButton.DataContext as DeviceLooks; if (deviceLook != null) { player.Tips = deviceLook.Name; } } }
/// <summary> /// 拍照 /// </summary> private void TakePhoto(CameraPlayer player) { DeviceLooks devLook = DevLooksManager.SelectedItem; if (devLook != null) { string path = devLook.ImagePath; if (File.Exists(path)) { ReplacedTip = devLook.Name + "照片已经被覆盖。"; } player.TakePhoto(path); devLook.CheckValidate(); } }