Пример #1
0
        private void DebugConsoleButton_Click(object sender, RoutedEventArgs e)
        {
            if (isDebugConsoleDisplayed)
            {
                DC.Hide();
            }
            else
            {
                DC.ShowLog();
            }

            isDebugConsoleDisplayed = !isDebugConsoleDisplayed;
        }
Пример #2
0
        /// <summary>
        /// Called when the page is first navigated to.
        /// </summary>
        public MainPage()
        {
            InitializeComponent();

            speech = new SpeechHelper(speechMediaElement);
            if (initializedOxford == false)
            {
                // If Oxford facial recognition has not been initialized, attempt to initialize it
                InitializeOxford();
            }
            this.recognitionPersistence = new RecognitionPersistence();

            Application.Current.Suspending += Current_Suspending;
            Window.Current.Activated       += CurrentWindowActivationStateChanged;
            DC.Hide();

            LoadDemographics();

            FaceServiceHelper.ApiKeyRegion = "northeurope";

            // Causes this page to save its state when navigating to other pages
            NavigationCacheMode = NavigationCacheMode.Enabled;
        }