public MainPage() { this.InitializeComponent(); //ggg _geolocator = new Geolocator(); _locationIcon10m = new LocationIcon10m(); _locationIcon100m = new LocationIcon100m(); //end NavigationCacheMode = NavigationCacheMode.Enabled; filterCanvas.Visibility = Visibility.Collapsed; emergencyCanvas.Visibility = Visibility.Collapsed; bgpostCanvas.Visibility = Visibility.Collapsed; postCanvas.Visibility = Visibility.Collapsed; for (int i = 0; i < 12; i++) { checkbox[i] = true; postcheckbox[i] = false; } checkallcheckbox(); getCurrentLocation(); //Post construct for (int i = 0; i < 31; i++) { dayItem[i] = new ListBoxItem(); dayItem[i].Content = i+1; dayCombo.Items.Add(dayItem[i]); } DateTime curTime = DateTime.Now; switch (curTime.Month) { case 0: case 2: case 4: case 6: case 7: case 9: case 11: dayItem[28].Visibility = Visibility.Visible; dayItem[29].Visibility = Visibility.Visible; dayItem[30].Visibility = Visibility.Visible; break; case 1: dayItem[28].Visibility = Visibility.Collapsed; dayItem[29].Visibility = Visibility.Collapsed; dayItem[30].Visibility = Visibility.Collapsed; break; default: dayItem[28].Visibility = Visibility.Visible; dayItem[29].Visibility = Visibility.Visible; dayItem[30].Visibility = Visibility.Collapsed; break; } //Post initial }
public MainPage() { this.InitializeComponent(); //ggg _geolocator = new Geolocator(); _locationIcon10m = new LocationIcon10m(); _locationIcon100m = new LocationIcon100m(); //end NavigationCacheMode = NavigationCacheMode.Enabled; filterCanvas.Visibility = Visibility.Collapsed; emergencyCanvas.Visibility = Visibility.Collapsed; bgpostCanvas.Visibility = Visibility.Collapsed; postCanvas.Visibility = Visibility.Collapsed; for (int i = 0; i < 12; i++) { checkbox[i] = true; } checkallcheckbox(); getCurrentLocation(); }