internal override void AddEvents(FBAdapter i_FBAdapter, IEnumerable<object> i_Events)
 {
     m_GMapControl.Invoke(new Action(() => m_GMapControl.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance));
     m_GMapControl.Invoke(new Action(() => m_GMapControl.SetPositionByKeywords("dubnov, Tel Aviv, Israel")));
     m_MarkersOverlay = new GMapOverlay("markers");
     foreach (object fbEvent in i_Events)
     {
         if (i_FBAdapter.HasLocationEvent(fbEvent))
         {
             //PointLatLng point = GetPosition(i_FBAdapter.GetLatLong(fbEvent));
             PointD eventLocation = i_FBAdapter.GetLatLong(fbEvent);
             PointLatLng point = new PointLatLng(eventLocation.X, eventLocation.Y);
             GMap.NET.WindowsForms.Markers.GMarkerGoogle marker = new GMap.NET.WindowsForms.Markers.GMarkerGoogle(
                 point,
                 GMap.NET.WindowsForms.Markers.GMarkerGoogleType.red_small);
             marker.ToolTipText = i_FBAdapter.GetEventName(fbEvent);
             m_MarkersOverlay.Markers.Add(marker);
         }
     }
 }
Example #2
0
 public MainForm()
 {
     m_FBAdapter = FBAdapter.Instance;
     InitializeComponent();
     buttonEventsImages.Enabled    = false;
     buttonEventsLocations.Enabled = false;
 }
 public FormMain()
 {
     m_FBAdapter = FBAdapter.Instance;
     InitializeComponent();
     buttonEventsImages.Enabled = false;
     buttonEventsLocations.Enabled = false;
 }
Example #4
0
        internal void LoadMap(UserControl i_UserControl, FBAdapter i_FBAdapter, IEnumerable <object> i_Events)
        {
            //Set control
            SetControl(i_UserControl);

            //Clear previous events
            ClearMap();

            //Add new events
            AddEvents(i_FBAdapter, i_Events);

            //Draw Map
            DrawMap();
        }
Example #5
0
        internal void LoadMap(UserControl i_UserControl, FBAdapter i_FBAdapter, IEnumerable<object> i_Events)
        {
            //Set control
            SetControl(i_UserControl);

            //Clear previous events
            ClearMap();

            //Add new events
            AddEvents(i_FBAdapter, i_Events);

            //Draw Map
            DrawMap();
        }
 internal override void AddEvents(FBAdapter i_FBAdapter, IEnumerable <object> i_Events)
 {
     m_GMapControl.Invoke(new Action(() => m_GMapControl.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance));
     m_GMapControl.Invoke(new Action(() => m_GMapControl.SetPositionByKeywords("dubnov, Tel Aviv, Israel")));
     m_MarkersOverlay = new GMapOverlay("markers");
     foreach (object fbEvent in i_Events)
     {
         if (i_FBAdapter.HasLocationEvent(fbEvent))
         {
             //PointLatLng point = GetPosition(i_FBAdapter.GetLatLong(fbEvent));
             PointD      eventLocation = i_FBAdapter.GetLatLong(fbEvent);
             PointLatLng point         = new PointLatLng(eventLocation.X, eventLocation.Y);
             GMap.NET.WindowsForms.Markers.GMarkerGoogle marker = new GMap.NET.WindowsForms.Markers.GMarkerGoogle(
                 point,
                 GMap.NET.WindowsForms.Markers.GMarkerGoogleType.red_small);
             marker.ToolTipText = i_FBAdapter.GetEventName(fbEvent);
             m_MarkersOverlay.Markers.Add(marker);
         }
     }
 }
Example #7
0
 internal abstract void AddEvents(FBAdapter i_FBAdapter, IEnumerable <object> i_Events);
 public IEnumerable <Event> GetEvents(FBAdapter i_FBAdapter)
 {
     return(i_FBAdapter.EventsNotYetReplied);
 }
 public IEnumerable <Event> GetEvents(FBAdapter i_FBAdapter)
 {
     return(i_FBAdapter.EventsCreated);
 }
 internal UserEvents(FBAdapter i_FBAdapter)
 {
     m_FBAdapter = i_FBAdapter;
 }
 public IEnumerable<Event> GetEvents(FBAdapter i_FBAdapter)
 {
     return i_FBAdapter.EventsNotYetReplied;
 }
 public IEnumerable<Event> GetEvents(FBAdapter i_FBAdapter)
 {
     return i_FBAdapter.EventsCreated;
 }
 internal UserEvents(FBAdapter i_FBAdapter)
 {
     m_FBAdapter = i_FBAdapter;
 }
Example #14
0
 internal abstract void AddEvents(FBAdapter i_FBAdapter, IEnumerable<object> i_Events);