Example #1
0
//		public class ArbitraryQuery : Predicate<GPSTrackInfo>
//		{
//			private bool m_blnExported;
//			private bool m_blnBeingExported;
//
//			public ArbitraryQuery(bool blnExported , bool blnBeingExported)
//			{
//				_points=points;
//			}
//
//			public bool Match(GPSTrackInfo trackInfo)
//			{
//
//				return ((trackInfo.Exported == m_blnExported) && (trackInfo.Exporting==m_blnBeingExported));
//			}
//		}
////
////	 Comparison<StockItem> stockCmp = new
//		//    Comparison<StockItem>(delegate(StockItem s1, StockItem s2)
//		//    {
//		//      return s2.Title.CompareTo(s1.Title);
//		//    });
//
//
//		public class QuerySorter extends Comparison<GPSTrackInfo>
//		{
//			private bool m_blnExported;
//			private bool m_blnBeingExported;
//
//			public int compare(GPSTrackInfo t1, GPSTrackInfo t2)
//			{
//				if (t1. < t2.getDateExec()) return -1;
//				if (t1.getDateExec() > t2.getDateExec()) return 1;
//				return 0;
//			}
//		}
        void BtnLogLocationWSClick(object sender, System.EventArgs e)
        {
            try
            {
                LogLocationService service = new LogLocationService();

                service.Url = m_strLogMyPositionURL;

                PositionalLogEntryRequest request = new PositionalLogEntryRequest();

                PositionalLogEntry[] logEntries = new PositionalLogEntry[10];                 //TODO: need to know how many positions...

                Credentials credentials = new Credentials();
                credentials.UserID      = "u771666";
                credentials.AccessToken = "[1212121]";
                credentials.Password    = "******";

                request.Credentials = credentials;

                request.LogEntry = getLogEntries();

                PositionalLogEntryResponse response = service.LogLocation(request);
                MessageBox.Show(response.ReturnCode, "PositionalLogEntryResponse");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, ex.Message);
                LogError("An error occurred in -> getLogEntries()...", ex);
            }
        }
Example #2
0
        //        public class ArbitraryQuery : Predicate<GPSTrackInfo>
        //        {
        //            private bool m_blnExported;
        //            private bool m_blnBeingExported;
        //            
        //            public ArbitraryQuery(bool blnExported , bool blnBeingExported)
        //            {
        //                _points=points;
        //            }
        //            
        //            public bool Match(GPSTrackInfo trackInfo)
        //            {
        //                
        //                return ((trackInfo.Exported == m_blnExported) && (trackInfo.Exporting==m_blnBeingExported));
        //            }
        //        }
        ////
        ////	 Comparison<StockItem> stockCmp = new
        //        //    Comparison<StockItem>(delegate(StockItem s1, StockItem s2)
        //        //    {
        //        //      return s2.Title.CompareTo(s1.Title);
        //        //    });
        //
        //        
        //        public class QuerySorter extends Comparison<GPSTrackInfo>
        //        {
        //            private bool m_blnExported;
        //            private bool m_blnBeingExported;
        //            
        //            public int compare(GPSTrackInfo t1, GPSTrackInfo t2)
        //            {
        //                if (t1. < t2.getDateExec()) return -1;
        //                if (t1.getDateExec() > t2.getDateExec()) return 1;
        //                return 0;
        //            }
        //        }
        void BtnLogLocationWSClick(object sender, System.EventArgs e)
        {
            try
            {
                LogLocationService service = new LogLocationService();

                service.Url = m_strLogMyPositionURL;

                PositionalLogEntryRequest request = new PositionalLogEntryRequest();

                PositionalLogEntry[] logEntries = new PositionalLogEntry[10]; //TODO: need to know how many positions...

                Credentials credentials = new Credentials();
                credentials.UserID = "u771666";
                credentials.AccessToken = "[1212121]";
                credentials.Password = "******";

                request.Credentials = credentials;

                request.LogEntry = getLogEntries();

                PositionalLogEntryResponse response = service.LogLocation(request);
                MessageBox.Show(response.ReturnCode,"PositionalLogEntryResponse" );
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message, ex.Message);
                LogError("An error occurred in -> getLogEntries()...", ex);

            }
        }