Esempio n. 1
0
 private async void AddButton_Click(object sender, RoutedEventArgs e)
 {
     if (isEditMode)
     {
         PinTiles();
     }
     else
     {
         //CityPanel.Width = ActualWidth - 64;
         await CityDailog.ShowAsync();
     }
 }
Esempio n. 2
0
 internal async void Add()
 {
     if (isEditMode)
     {
         PinTiles();
     }
     else
     {
         //CityPanel.Width = ActualWidth - 64;
         await CityDailog.ShowAsync();
     }
 }
Esempio n. 3
0
        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));
            }
        }