Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
        public PositionalLogEntryResponse LogLocation([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://www.ineventofemergency.com/schema/LocationLogging")] PositionalLogEntryRequest PositionalLogEntryRequest)
        {
            object[] results = this.Invoke("LogLocation", new object[] {
                PositionalLogEntryRequest
            });

            return((PositionalLogEntryResponse)(results[0]));
        }
Exemplo n.º 3
0
 /// <remarks/>
 public System.IAsyncResult BeginLogLocation(PositionalLogEntryRequest PositionalLogEntryRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("LogLocation", new object[] {
                 PositionalLogEntryRequest}, callback, asyncState);
 }
Exemplo n.º 4
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);

            }
        }
Exemplo n.º 5
0
 /// <remarks/>
 public System.IAsyncResult BeginLogLocation(PositionalLogEntryRequest PositionalLogEntryRequest, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("LogLocation", new object[] {
         PositionalLogEntryRequest
     }, callback, asyncState));
 }