private async void AddButton_Click(object sender, RoutedEventArgs e) { if (isEditMode) { PinTiles(); } else { //CityPanel.Width = ActualWidth - 64; await CityDailog.ShowAsync(); } }
internal async void Add() { if (isEditMode) { PinTiles(); } else { //CityPanel.Width = ActualWidth - 64; await CityDailog.ShowAsync(); } }
private async void GridView_ItemClick(object sender, ItemClickEventArgs e) { if ((e.ClickedItem as CityViewModel).Empty) { //CityPanel.Width = ActualWidth - 64; await CityDailog.ShowAsync(); return; } GridView.SelectedIndex = Context.Cities.IndexOf(e.ClickedItem as CityViewModel); if (GridView.SelectedIndex == Context.CurrentIndex) { if (baba != null) { baba.Navigate(typeof(NowWeatherPage)); } return; } Context.ChangeCurrent(GridView.SelectedIndex); if (baba != null) { baba.Navigate(typeof(NowWeatherPage)); } }