private void AddHome_bt_Click(object sender, RoutedEventArgs e) { SelectHome_ContentDialogue.Hide(); #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed AddNewHome_CD.ShowAsync(); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed NewHomeName.Text = ""; }
private void HomeListViewItem_Tapped(object sender, TappedRoutedEventArgs e) { Homes_ListView.SelectedIndex = -1; SelectHome_ContentDialogue.IsPrimaryButtonEnabled = false; #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed SelectHome_ContentDialogue.ShowAsync(); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed }
private void SelectHome_ContentDialogue_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { SelectHome_ContentDialogue.Hide(); ClearNavMenu(); if (HamburgerMenuSplitView.DisplayMode == SplitViewDisplayMode.Overlay) { HamburgerMenuSplitView.IsPaneOpen = false; } App.HomesViewModel.SelectedHome = App.HomesViewModel.Homes[Homes_ListView.SelectedIndex]; MyHome_ListView.SelectedIndex = 0; NavMenuListView.navlistone[0].IsSelected = true; SelectHome_ContentDialogue.IsPrimaryButtonEnabled = false; shellFrame.Navigate(typeof(Overview.MainPage)); }