Beispiel #1
0
        /// <summary>
        /// Get and save settings to file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void SaveSettingsButton_Clicked(object sender, EventArgs e)
        {
            App.questionOrder   = (Constants.QuestionOrder)QuestionOrderPicker.SelectedIndex;
            App.termDisplay     = (Constants.TermDisplay)TermDisplayPicker.SelectedIndex;
            App.provideFeedback = (Constants.ProvideFeedback)ProvideFeedbackPicker.SelectedIndex;
            // Returns success or error message
            await this.DisplayAlert("Test Mate", AppFunctions.SaveSettingsToFile(App.questionOrder, App.termDisplay, App.provideFeedback), "OK");

            await Application.Current.MainPage.Navigation.PopAsync();
        }