コード例 #1
0
        private void SetCameraPlayerState(CameraPlayer player)
        {
            DeviceLooks devLook = DevLooksManager.SelectedItem;

            if (devLook != null)
            {
                // player.Tips = devLook.Name;
            }
        }
コード例 #2
0
ファイル: TakePhoto.xaml.cs プロジェクト: iamoatil/Tools
        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;
                }
            }
        }
コード例 #3
0
        /// <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();
            }
        }