Exemple #1
0
 /// <remarks/>
 public void ProcessMyLocationAsync(Location location, object userState) {
     if ((this.ProcessMyLocationOperationCompleted == null)) {
         this.ProcessMyLocationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnProcessMyLocationOperationCompleted);
     }
     this.InvokeAsync("ProcessMyLocation", new object[] {
                 location}, this.ProcessMyLocationOperationCompleted, userState);
 }
Exemple #2
0
 public string ProcessMyLocation(Location location) {
     object[] results = this.Invoke("ProcessMyLocation", new object[] {
                 location});
     return ((string)(results[0]));
 }
Exemple #3
0
 /// <remarks/>
 public void ProcessMyLocationAsync(Location location) {
     this.ProcessMyLocationAsync(location, null);
 }
Exemple #4
0
        private void SendLocation(object sender, ElapsedEventArgs e)
        {
            try
            {
                GeoCoordinate gc = gcw.Position.Location;
                Location loc = new Location();
                loc.Latitude = gc.Latitude;
                loc.Longitude = gc.Longitude;

                string stResponse = sv.ProcessMyLocation(loc);
                Console.WriteLine(stResponse);

                if (stResponse == "Lock Computer")
                    LockComputer();
            }
            catch
            {
            }
        }