コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: sabbour/photoblobber
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            cameraCapture = new CameraCaptureTask();
            cameraCapture.Completed += cameraCapture_Completed;
        }
コード例 #2
0
        private void btCapturar_Click(object sender, RoutedEventArgs e)
        {
            CameraCaptureTask camera = new CameraCaptureTask();

            camera.Completed += Camera_Completed;
            camera.Show();
        }
コード例 #3
0
        public CameraCaptureCommand(object parameter)
        {
            _captureTask = new CameraCaptureTask();
            _captureTask.Completed += CaptureTaskOnCompleted;

            _viewModel = (MainViewModel) parameter;
        }
        public RecipeDetailPage()
        {
            InitializeComponent();

            camera = new CameraCaptureTask();
            camera.Completed += camera_Completed;
        }
コード例 #5
0
        //shared media load from store

        private void WP8Statics_FbSharedMediaClickHandle(object sender, EventArgs e)
        {
            CameraCaptureTask cameraCaptureTask = new CameraCaptureTask();

            cameraCaptureTask.Completed += cameraCaptureTask_Completed;
            cameraCaptureTask.Show();
        }
コード例 #6
0
ファイル: SellHomeSec.xaml.cs プロジェクト: ahmednasir91/HOP
        private void CameraButton_Click(object sender, EventArgs e)
        {
            var _cameraTask = new CameraCaptureTask();

            _cameraTask.Completed += OnCameraAlbumTaskOnCompleted;
            _cameraTask.Show();
        }
コード例 #7
0
        void appBarButtonCamera_Click(object sender, EventArgs e)
        {
            CameraCaptureTask camCapture = new CameraCaptureTask();

            camCapture.Completed += new EventHandler <PhotoResult>(camCapture_Completed);
            camCapture.Show();
        }
コード例 #8
0
ファイル: Scan.xaml.cs プロジェクト: angelroic/Upreal
        public Scan()
        {
            InitializeComponent();

            cameraCaptureTask = new CameraCaptureTask();
            Loaded += new RoutedEventHandler(SearchView_Loaded);
        }
コード例 #9
0
        private void SelectButton_Click(object sender, EventArgs e)
        {
            var task = new CameraCaptureTask();

            task.Completed += CaptureTask_Completed;
            task.Show();
        }
コード例 #10
0
        private void btnMakePhoto_Click(object sender, RoutedEventArgs e)
        {
            var cameraCaptureTask = new CameraCaptureTask();

            cameraCaptureTask.Completed += TaskCompletedPhoto;
            cameraCaptureTask.Show();
        }
コード例 #11
0
        public CreateLevel()
        {
            InitializeComponent();

            cameraTask            = new CameraCaptureTask();
            cameraTask.Completed += new EventHandler <PhotoResult>(cameraTask_Completed);
        }
コード例 #12
0
        public Add()
        {
            InitializeComponent();
            DataContext = App.ViewModel;
            App.ViewModel.LoadShopsFromDatabase();

            if (App.ViewModel.AllShopsItems.Count == 0)
            {
                MessageBox.Show("Zanim wprowadzisz paragon należy dodać sklep do bazy.");
            }

            lpkOperationType.ItemsSource = Enum <OperationType> .GetNames();

            lpkShopsCategory.ItemsSource = Enum <ShopsCategory> .GetNames();

            //Create new instance of CameraCaptureClass
            _cameraCapture = new CameraCaptureTask();
            //Create new event handler for capturing a photo
            _cameraCapture.Completed += new EventHandler <PhotoResult>(CameraCapture_Completed);
            //Progres Indicator
            _progressIndicator                 = new ProgressIndicator();
            _progressIndicator.IsVisible       = false;
            _progressIndicator.IsIndeterminate = true;
            SystemTray.SetProgressIndicator(this, _progressIndicator);
        }
コード例 #13
0
        private void btnResimDegistir_Click(object sender, RoutedEventArgs e)
        {
            CameraCaptureTask kamera = new CameraCaptureTask();

            kamera.Show();
            kamera.Completed += Kamera_Completed;
        }
コード例 #14
0
        public CameraCaptureCommand(object parameter)
        {
            _captureTask            = new CameraCaptureTask();
            _captureTask.Completed += CaptureTaskOnCompleted;

            _viewModel = (MainViewModel)parameter;
        }
コード例 #15
0
ファイル: DriveLogic.cs プロジェクト: viperium/WatchDogWP8
        public static void StartLoop()
        {
            CameraCaptureTask cameraCaptureTask = new CameraCaptureTask();
            cameraCaptureTask.Completed += new EventHandler<PhotoResult>(cameraCaptureTask_Completed);

            cameraCaptureTask.Show();
        }
コード例 #16
0
 //Save the captured image to isolated storage
 private void Save_the_captured_image(object sender, RoutedEventArgs e)
 {
     CameraCaptureTask photoCameraCapture = new CameraCaptureTask();
     photoCameraCapture = new CameraCaptureTask();
     photoCameraCapture.Completed += new EventHandler<PhotoResult>(photoCameraCapture_Completed);
     photoCameraCapture.Show(); 
 }
コード例 #17
0
        public PicEfffect()
        {
            InitializeComponent();

            // Init vars
            oldViewportSize = new Size(Viewport.ActualWidth, Viewport.ActualHeight);
            wasResized      = false;

            // Attach touch event handler
            Touch.FrameReported += Touch_FrameReported;

            // Init tasks
            cameraCaptureTask            = new CameraCaptureTask();
            cameraCaptureTask.Completed += PhotoProviderTaskCompleted;
            photoChooserTask             = new PhotoChooserTask();
            photoChooserTask.Completed  += PhotoProviderTaskCompleted;

            // Disable the camera button if the app runs in the emulator
            // Todo: The BtnCamera reference returns null in WP7 v1
            // BtnCamera.IsEnabled = Microsoft.Devices.Environment.DeviceType != DeviceType.Emulator;
            // That's why we have to use this more hacky trick:
            var buttons = ApplicationBar.Buttons.Cast <Microsoft.Phone.Shell.ApplicationBarIconButton>();
            var btn     = buttons.Where(b => b.IconUri.ToString().ToLower().Contains("camera")).FirstOrDefault();

            if (btn != null)
            {
                btn.IsEnabled = Microsoft.Devices.Environment.DeviceType != DeviceType.Emulator;
            }
        }
コード例 #18
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var cameraCaptureTask = new CameraCaptureTask();

            cameraCaptureTask.Completed += cameraCaptureTask_Completed;
            cameraCaptureTask.Show();
        }
コード例 #19
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            act            = new AddressChooserTask();
            act.Completed += new EventHandler <AddressResult>(act_Completed);

            cct            = new CameraCaptureTask();
            cct.Completed += new EventHandler <PhotoResult>(cct_Completed);

            eact            = new EmailAddressChooserTask();
            eact.Completed += new EventHandler <EmailResult>(eact_Completed);

            git            = new GameInviteTask();
            git.Completed += new EventHandler <TaskEventArgs>(git_Completed);

            pct            = new PhotoChooserTask();
            pct.Completed += new EventHandler <PhotoResult>(pct_Completed);

            pnct            = new PhoneNumberChooserTask();
            pnct.Completed += new EventHandler <PhoneNumberResult>(pnct_Completed);

            seat            = new SaveEmailAddressTask();
            seat.Completed += new EventHandler <TaskEventArgs>(seat_Completed);

            srt            = new SaveRingtoneTask();
            srt.Completed += new EventHandler <TaskEventArgs>(srt_Completed);

            spnt            = new SavePhoneNumberTask();
            spnt.Completed += new EventHandler <TaskEventArgs>(spnt_Completed);
        }
コード例 #20
0
        public RecipeDetailPage()
        {
            InitializeComponent();

            camera            = new CameraCaptureTask();
            camera.Completed += camera_Completed;
        }
コード例 #21
0
        private void ShowCameraCaptureTask(object sender, EventArgs e)
        {
            CameraCaptureTask photoCameraCapture = new CameraCaptureTask();

            photoCameraCapture.Completed += photoCompleted;
            photoCameraCapture.Show();
        }
コード例 #22
0
        private void iconCamera_Click(object sender, EventArgs e)
        {
            CameraCaptureTask task = new CameraCaptureTask( );

            Config.Cache_TweetPic = null;
            task.Completed       += (s, e1) =>
            {
                if (e1.ChosenPhoto != null)
                {
                    BitmapImage bmpSource = new BitmapImage( );
                    bmpSource.SetSource(e1.ChosenPhoto);
                    this.img.Source = bmpSource;
                    BitmapImage g_bmp = new BitmapImage( );
                    g_bmp.CreateOptions = BitmapCreateOptions.DelayCreation;
                    g_bmp.SetSource(e1.ChosenPhoto);
                    g_stream = Tool.ReduceSize(g_bmp);
                    Config.Cache_TweetPic = g_stream;
                }
            };
            try
            {
                task.Show( );
            }
            catch { }
        }
コード例 #23
0
        public void Capture()
        {
            var cameraCaptureTask = new CameraCaptureTask();

            cameraCaptureTask.Completed += new EventHandler <PhotoResult>(cameraCaptureTask_Completed);
            cameraCaptureTask.Show();
        }
コード例 #24
0
 public writePost()
 {
     InitializeComponent();
     client            = new Service1Client();
     upload            = new CameraCaptureTask();
     upload.Completed += upload_Completed;
 }
コード例 #25
0
        public CreateLevel()
        {
            InitializeComponent();

            cameraTask = new CameraCaptureTask();
            cameraTask.Completed += new EventHandler<PhotoResult>(cameraTask_Completed);
        }
コード例 #26
0
        public MainPage()
        {
            InitializeComponent();

            _captureCamera = new CameraCaptureTask();
            _captureCamera.Completed += _captureCamera_Completed;
        }
コード例 #27
0
        private void bTakePhoto_OnTap(object sender, GestureEventArgs e)
        {
            var cc = new CameraCaptureTask();

            cc.Completed += (o, result) =>
            {
                if (result.TaskResult == TaskResult.Cancel)
                {
                    return;
                }
                var bi = new BitmapImage();
                bi.SetSource(result.ChosenPhoto);
                biTerrImage.Source = bi;

                var wb = new WriteableBitmap(biTerrImage, null);
                wb.Invalidate();

                var bmp = new BitmapImage();
                using (var ms = new MemoryStream()) {
                    wb.SaveJpeg(ms, 300, 300, 0, 100);
                    bmp.SetSource(ms);
                }
                ViewModel.TerritoryCardImage = bmp;
                biTerrImage.SetBinding(Image.SourceProperty,
                                       new Binding()
                {
                    Source = ViewModel.TerritoryCardImage
                });
            };
            cc.Show();
        }
コード例 #28
0
        private void BtnTakePictureClick(object sender, RoutedEventArgs e)
        {
            var captureTask = new CameraCaptureTask();
            _geoLocationManager.RetrieveCurrentLocation();
            captureTask.Completed += (s, a) =>
                                         {
                                             try
                                             {
                                                 if (a.Error == null && a.TaskResult == TaskResult.OK && a.ChosenPhoto != null)
                                                 {
                                                     var photo = new Photo
                                                                     {
                                                                         Latitude = _geoLocationManager.Latitude,
                                                                         Longitude = _geoLocationManager.Longitude
                                                                     };
                                                     var bytes = new byte[a.ChosenPhoto.Length];
                                                     a.ChosenPhoto.Read(bytes, 0, bytes.Length);
                                                     a.ChosenPhoto.Close();
                                                     photo.ImageBytes = bytes;

                                                     _persistenceManager.Add(photo);
                                                 }
                                             }
                                             catch (Exception ex)
                                             {
                                                Console.WriteLine(ex.Message);
                                             }
                                         };
            captureTask.Show();
        }
コード例 #29
0
        private void Capture_Click(object sender, EventArgs e)
        {
            var task = new CameraCaptureTask();

            task.Completed += chooserTask_Completed;
            task.Show();
        }
コード例 #30
0
ファイル: Capture.cs プロジェクト: hermwong/phonegap-wp7
        /// <summary>
        /// Launches default camera application to capture image
        /// </summary>
        /// <param name="options">may contains limit or mode parameters</param>
        public void captureImage(string options)
        {
            try
            {
                try
                {
                    this.captureImageOptions = String.IsNullOrEmpty(options) ?
                        CaptureImageOptions.Default : JSON.JsonHelper.Deserialize<CaptureImageOptions>(options);

                }
                catch (Exception ex)
                {
                    this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message));
                    return;
                }

                cameraTask = new CameraCaptureTask();
                cameraTask.Completed += this.cameraTask_Completed;
                cameraTask.Show();
            }
            catch (Exception e)
            {
                DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, e.Message));
            }
        }
コード例 #31
0
 public MessageBoxUserControl()
 {
     InitializeComponent();
     _cameraCaptureTask = new CameraCaptureTask();
     _cameraCaptureTask.Completed += cameraCaptureTask_Completed;
     StatusTextCount.Text = string.Format("{0}/{1}", StatusUpdateBox.Text.Length, Constants.STATUS_LIMIT);
 }
コード例 #32
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            cameraCaptureTask            = new CameraCaptureTask();
            cameraCaptureTask.Completed += new EventHandler <PhotoResult>(cameraCaptureTask_Completed);
        }
コード例 #33
0
ファイル: MainPage.xaml.cs プロジェクト: rolkun/WP8Kochbuch
        // Constructor
        public MainPage()
        {
            InitializeComponent();

              _cameraTask = new CameraCaptureTask();
              _cameraTask.Completed += cameraTask_Completed;
        }
コード例 #34
0
        /// <summary>
        /// Launches default camera application to capture image
        /// </summary>
        /// <param name="options">may contains limit or mode parameters</param>
        public void captureImage(string options)
        {
            try
            {
                try
                {
                    this.captureImageOptions = String.IsNullOrEmpty(options) ?
                                               CaptureImageOptions.Default : JSON.JsonHelper.Deserialize <CaptureImageOptions>(options);
                }
                catch (Exception ex)
                {
                    this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message));
                    return;
                }


                cameraTask            = new CameraCaptureTask();
                cameraTask.Completed += this.cameraTask_Completed;
                cameraTask.Show();
            }
            catch (Exception e)
            {
                DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, e.Message));
            }
        }
コード例 #35
0
 public CamerChooser()
 {
     InitializeComponent();
     //建议在初始化完成之后就加载事件处理函数,这与application lift cycle有关
     cct            = new CameraCaptureTask();
     cct.Completed += new EventHandler <PhotoResult>(cct_Completed);
 }
コード例 #36
0
 private void btnSaveNewPhoto_Click(object sender, RoutedEventArgs e)
 {
     // Start the camera capture task.
     cameraCaptureTask            = new CameraCaptureTask();
     cameraCaptureTask.Completed += new EventHandler <PhotoResult>(cameraCaptureTask_Completed);
     cameraCaptureTask.Show();
 }
コード例 #37
0
ファイル: MainPage.xaml.cs プロジェクト: sabbour/photoblobber
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            cameraCapture            = new CameraCaptureTask();
            cameraCapture.Completed += cameraCapture_Completed;
        }
コード例 #38
0
 public camera()
 {
     InitializeComponent();
     InitializeComponent();
     _camtask            = new CameraCaptureTask();
     _camtask.Completed += TaskCompleted;
 }
コード例 #39
0
ファイル: PicEffect.xaml.cs プロジェクト: kshark27/ZuPix
        //DateTime lastTouchUpdate;
        public PicEffect()
        {
            InitializeComponent();

            // Init vars
            oldViewportSize = new Size(Viewport.ActualWidth, Viewport.ActualHeight);
            wasResized = false;

            // Attach touch event handler
            Touch.FrameReported += Touch_FrameReported;

            // Init tasks
            cameraCaptureTask = new CameraCaptureTask();
            cameraCaptureTask.Completed += PhotoProviderTaskCompleted;
            photoChooserTask = new PhotoChooserTask();
            photoChooserTask.Completed += PhotoProviderTaskCompleted;

            // Disable the camera button if the app runs in the emulator
            // Todo: The BtnCamera reference returns null in WP7 v1
            // BtnCamera.IsEnabled = Microsoft.Devices.Environment.DeviceType != DeviceType.Emulator;
            // That's why we have to use this more hacky trick:
            var buttons = ApplicationBar.Buttons.Cast<Microsoft.Phone.Shell.ApplicationBarIconButton>();
            var btn = buttons.Where(b => b.IconUri.ToString().ToLower().Contains("camera")).FirstOrDefault();
            //if (btn != null)
            //{
                //btn.IsEnabled = Microsoft.Devices.Environment.DeviceType != DeviceType.Emulator;
            //}
            BackKeyPress += OnBackKeyPressed;
        }
コード例 #40
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            CameraCaptureTask ct = new CameraCaptureTask();

            ct.Completed += ct_Completed;
            ct.Show();
        }
コード例 #41
0
        public NewImageVM(IMessageBus Messenger,
            IStoreImages ImageStore) {
            Messenger.Listen<IElementVM<MultimediaObject>>(MessageContracts.EDIT)
                .Where(vm => vm.Model.MediaType == MediaType.Image && vm.Model.IsNew())
                .SelectMany(mmo => {
                        var capture = new CameraCaptureTask();
                        var results =
                            Observable.FromEventPattern<PhotoResult>(h => capture.Completed += h, h => capture.Completed -= h)
                            .Select(ev => ev.EventArgs)
                            .Catch(Observable.Empty<PhotoResult>())
                            .Select(res => new { VM = mmo, Result = res })
                            .Take(1)
                            .Replay(1);
                        results.Connect();
                        try {
                            capture.Show();
                        }
                        catch (InvalidOperationException) {
                        }
                        return results;
                    })
                .Where(tuple => tuple.VM != null
                    && tuple.Result != null
                    && tuple.Result.TaskResult == TaskResult.OK)
                .Do(tuple => {
                        tuple.VM.Model.Uri = ImageStore.StoreImage(tuple.VM.Model.NewFileName(), tuple.Result);

                    })
                .Select(t => t.VM as IElementVM<MultimediaObject>)
                .ToMessage(Messenger, MessageContracts.SAVE);
        }
コード例 #42
0
        private void Button1Click(object sender, RoutedEventArgs e)
        {
            var cameraTask = new CameraCaptureTask();

            cameraTask.Completed += new EventHandler <PhotoResult>(cameraTask_Completed);
            cameraTask.Show();
        }
コード例 #43
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            camera = new CameraCaptureTask();
            camera.Completed += new EventHandler<PhotoResult>(camera_Completed);
        }
コード例 #44
0
        public void TakePicture(int maxPixelDimension, int percentQuality, Action <Stream> pictureAvailable,
                                Action assumeCancelled)
        {
            var chooser = new CameraCaptureTask {
            };

            ChoosePictureCommon(chooser, maxPixelDimension, percentQuality, pictureAvailable, assumeCancelled);
        }
コード例 #45
0
ファイル: BabyViewModel.cs プロジェクト: hmiguellima/babyfeed
        private void HandleCapturePhoto()
        {
            CameraCaptureTask photoCameraCapture;

            photoCameraCapture            = new CameraCaptureTask();
            photoCameraCapture.Completed += new EventHandler <PhotoResult>(HandlePhotoResult);
            photoCameraCapture.Show();
        }
コード例 #46
0
 public nuevaFoto()
 {
     InitializeComponent();
     cameraCaptureTask = new CameraCaptureTask();
     cameraCaptureTask.Completed += new EventHandler<PhotoResult>(cameraCaptureTask_Completed);
     loadingBar.Visibility = Visibility.Visible;
     loadingBar.IsIndeterminate = false;
 }
コード例 #47
0
 public MainPage()
 {
     InitializeComponent();
     this.photoChooserTask = new PhotoChooserTask();
     this.photoChooserTask.Completed += new EventHandler<PhotoResult>(photoChooserTask_Completed);
     this.photoCameraCapture = new CameraCaptureTask();
     this.photoCameraCapture.Completed += new EventHandler<PhotoResult>(photoCameraCapture_Completed);
 }
コード例 #48
0
ファイル: Upload.xaml.cs プロジェクト: aabrohi/kinect-kollage
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // Initialize the CameraCaptureTask and assign the Completed handler in the page constructor.
            cameraCaptureTask = new CameraCaptureTask();
            cameraCaptureTask.Completed += new EventHandler<PhotoResult>(cameraCaptureTask_Completed);
        }
コード例 #49
0
        private void GetCaptureImageA(object obj)
        {
            CameraCaptureTask camera = new CameraCaptureTask();
            camera.Show();

            camera.Completed += new EventHandler<PhotoResult>(camera_a);

        }
コード例 #50
0
ファイル: MainPage.xaml.cs プロジェクト: hkgumbs/panes
        private void PlayCreate_Click(object sender, RoutedEventArgs e)
        {
            //Create new instance of CameraCaptureClass
               ctask = new CameraCaptureTask();

            //Create new event handler for capturing a photo
            ctask.Completed += new EventHandler<PhotoResult>(ctask_Completed);
            ctask.Show();
        }
        public RecipeDetailPage()
        {
            InitializeComponent();

            camera = new CameraCaptureTask();
            camera.Completed += camera_Completed;

            LocalizeApplicationBar();
        }
コード例 #52
0
        private void CameraButtonClick(object sender,
                                      RoutedEventArgs e)
        {
            CameraCaptureTask camera = new CameraCaptureTask();
            camera.Completed += new EventHandler
                                     <PhotoResult>(camera_Result);

            camera.Show();
        }
コード例 #53
0
 public CapturePage()
 {
     InitializeComponent();
     //Actually get databinding set up
     person = new Person();
     (App.Current.RootVisual as PhoneApplicationFrame).DataContext = person;
     ctask = new CameraCaptureTask();
     ctask.Completed += new EventHandler<PhotoResult>(ctask_Completed);
 }
コード例 #54
0
ファイル: MainPage.xaml.cs プロジェクト: Arthraim/WbtoMongo
        private void btnCapPhoto_Click(object sender, EventArgs e)
        {
            imageFileName = string.Empty;
            imageStream = null;

            cameraCapture = new CameraCaptureTask();
            cameraCapture.Completed += new EventHandler<PhotoResult>(cameracapture_Completed);
            cameraCapture.Show();
        }
コード例 #55
0
ファイル: MainPage.xaml.cs プロジェクト: daegren/picturme-wp7
        public MainPage()
        {
            InitializeComponent();
            camera = new CameraCaptureTask();
            camera.Completed += new EventHandler<PhotoResult>(camera_Completed);

            librarySelect = new PhotoChooserTask();
            librarySelect.Completed += new EventHandler<PhotoResult>(librarySelect_Completed);
        }
コード例 #56
0
 public AddPicturePage()
 {
     InitializeComponent();
     // Initialize the Chooser objects and assign the handlers for their "Completed" events
     cameraCaptureTask = new CameraCaptureTask();
     cameraCaptureTask.Completed += new EventHandler<PhotoResult>(photoCaptureOrSelectionCompleted);
     photoChooserTask = new PhotoChooserTask();
     photoChooserTask.Completed += new EventHandler<PhotoResult>(photoCaptureOrSelectionCompleted);
 }
コード例 #57
0
      //  private TTSHelper tts = new TTSHelper();

        public void init()
        {
            this.cameraCaptureTask = new CameraCaptureTask();

            this.cameraCaptureTask.Completed += new System.EventHandler<PhotoResult>(this.PhotoChooserCompleted);

            this.cameraCaptureTask.Show();
           
            //tts.Speak("Camera loaded, Tap on screen to take picture");
        }
コード例 #58
0
ファイル: MainPage.xaml.cs プロジェクト: mbmccormick/Carded
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            this.cameraCaptureTask = new CameraCaptureTask();
            this.cameraCaptureTask.Completed += new System.EventHandler<PhotoResult>(this.PhotoChooserCompleted);

            this.saveContactTask = new SaveContactTask();
            this.saveContactTask.Completed += new System.EventHandler<SaveContactResult>(this.ContactSaverCompleted);
        }
コード例 #59
0
 public MainPage()
 {
     InitializeComponent();
     this.CordovaView.Loaded += CordovaView_Loaded;
     CameraButtons.ShutterKeyPressed += CameraButtons_ShutterKeyPressed;
     CameraButtons.ShutterKeyHalfPressed += CameraButtons_ShutterKeyHalfPressed;
     //CameraButtons.ShutterKeyHalfPressed +=CameraButtons_ShutterKeyHalfPressed;
     cameraCaptureTask = new CameraCaptureTask();
     cameraCaptureTask.Completed += new EventHandler<PhotoResult>(cameraCaptureTask_Completed);
 }
コード例 #60
0
ファイル: EditView.xaml.cs プロジェクト: tjpiggott/PhotoBook
        public EditView()
        {
            InitializeComponent();
            mediaGallery = new MediaGallery(MediaGalleryCanvas);
            DataContext = App.ViewModel;
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);

            takePic = new CameraCaptureTask();
            takePic.Completed += TakePictureFromCameraCompleted;
        }