internal MyPlaces(GMapControl i_Map, FacebookObjectCollection <Checkin> i_checkins, FacebookObjectCollection <Photo> i_photosTaggedIn, FacebookWrapper.ObjectModel.Location i_currLocation, IPlacePicker i_PlacePicker) { m_MapDisplayed = false; m_Map = i_Map; m_checkins = i_checkins; m_photosTaggedIn = i_photosTaggedIn; m_currLocation = i_currLocation; m_PlacePicker = i_PlacePicker; }
private void buttonTaggedPlaces_Click(object sender, EventArgs e) { buttonShowMyPlaces.Notify(); FacebookObjectCollection <Checkin> checkins = null; FacebookObjectCollection <Photo> photosTaggedIn = null; FacebookWrapper.ObjectModel.Location currLocation = null; IPlacePicker placePicker = new PlacePickerAll(); if ((string)SelectPlacesFrom.SelectedItem == "Jerusalem") { placePicker = new PlacePickerFromJerusalem(); } else if ((string)SelectPlacesFrom.SelectedItem == "Tel Aviv") { placePicker = new PlacePickerFromTelAviv(); } else if ((string)SelectPlacesFrom.SelectedItem == "Israel") { placePicker = new PlacePickerFromIsrael(); } if (checkBoxcheckins.Checked == true) { checkins = m_FacebookUser.Checkins; } if (checkBoxTagedPlaces.Checked == true) { photosTaggedIn = m_FacebookUser.PhotosTaggedIn; } if (checkBoxCurrentLocation.Checked == true) { currLocation = m_FacebookUser.Location.Location; } if (m_MyPlaces == null) { m_MyPlaces = new MyPlaces(this.map, checkins, photosTaggedIn, currLocation, placePicker); } try { m_MyPlaces.ShowMyPlaces(); } catch (MapAlreadyInitializedException exception) { MessageBox.Show(exception.Message); } }