private async Task <bool> ExecuteMainMenuOption(WelcomeSplashResult result) { bool mainShouldShowAgain = false; switch (result) { case WelcomeSplashResult.Solo: isConnected = false; loadBtn.IsEnabled = true; loadBtn.Visibility = Visibility.Visible; break; case WelcomeSplashResult.Join: mainShouldShowAgain = await JoinSelected(); break; case WelcomeSplashResult.Host: mainShouldShowAgain = await HostSelected(); break; case WelcomeSplashResult.Exit: CoreApplication.Exit(); break; } return(mainShouldShowAgain); }
private void exitBtn_Click(object sender, RoutedEventArgs e) { this.Result = WelcomeSplashResult.Exit; this.Hide(); }
public WelcomePage() { this.InitializeComponent(); this.Result = WelcomeSplashResult.Solo; }