Inheritance: System.EventArgs
Example #1
0
 void UpdatePosition(object sender, PositionEventArgs e)
 {
     if (PoI.Position != null)
     {
         this.Latitude = PoI.Position.Latitude;
         this.Longitude = PoI.Position.Longitude;
     }
 }
Example #2
0
        private void p_PositionChanged(object sender, PositionEventArgs e)
        {
            if (e.Position.Date.Ticks==0)
                e.Position.Date = DateTime.Now;
            History.Add(e.Position);
            //return;
            // FIXME TODO: Unreachable code
//            lock (saveLock)
//            {
//                saveQueue.Add(e.Position.ToCsv());
//                if (saveQueue.Count > 10)
//                {
//                    try
//                    {
//                        var s = saveQueue.Aggregate(string.Empty, (current, p) => current + (p + Environment.NewLine));
//                        saveQueue.Clear();                        
//                        Service.store.AppendString("Tracks", FileName, s);                        
//                    }
//                    catch (Exception)
//                    {
//                        var c = e.Position;
//                    }
//                }
//            }
        }
Example #3
0
        private void PoiPositionChanged(object sender, PositionEventArgs e)
        {

        }
Example #4
0
 void p_PositionChanged(object sender, PositionEventArgs e)
 {
     var p = (PoI)sender;
     UpdatePosition(p);
 }
 private void PoiPositionChanged(object sender, PositionEventArgs e)
 {
     UpdateState();
 }