Пример #1
0
        private void PhoneApplicationPage_Unloaded(object sender, RoutedEventArgs e)
        {
            ShootButton.DataContext = null;
            ShootingProgress.DataContext = null;
            ZoomElements.DataContext = null;
            Toast.DataContext = null;
            IntervalStatusPanel.DataContext = null;
            IntervalStatusTime.DataContext = null;
            IntervalStatusCount.DataContext = null;
            ScreenImageWrapper.DataContext = null;
            AudioScreenImage.DataContext = null;

            cpm.SetPivotIsLocked -= this.SetPivotIsLocked;
            cpm = null;
            svd = null;
        }
Пример #2
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            svd = new ShootingViewData(AppStatus.GetInstance(), cameraManager.cameraStatus);
            ShootButton.DataContext = svd;
            ShootingProgress.DataContext = svd;
            ZoomElements.DataContext = svd;
            Toast.DataContext = svd;
            IntervalStatusPanel.DataContext = cameraManager.IntervalManager;
            IntervalStatusTime.DataContext = cameraManager.IntervalManager;
            IntervalStatusCount.DataContext = cameraManager.IntervalManager;
            ScreenImageWrapper.DataContext = cameraManager.cameraStatus;
            AudioScreenImage.DataContext = cameraManager.cameraStatus;

            cpm = new ControlPanelManager(ControlPanel);
            cpm.SetPivotIsLocked += this.SetPivotIsLocked;
        }