public void ShowCustomSettingFlyout() { Settings setting = new Settings(); setting.Show(); }
private async void SettingsFlyout_Unloaded(object sender, RoutedEventArgs e) { if (available_users.SelectedIndex != -1) { Config.username = available_users.Items[available_users.SelectedIndex].ToString(); Config.password = ""; Config.saveSettings(); User user = SharedVariables.userHandler.getUser(Config.username); if (user != null && user.isPasswordProtected()) { MessageDialog message = new MessageDialog("User need password authentication, enter password in settings section", "Password needed"); await message.ShowAsync(); } } Settings settings = new Settings(); settings.Show(); }