Example #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);
 }
Example #2
0
 public string ProcessMyLocation(Location location) {
     object[] results = this.Invoke("ProcessMyLocation", new object[] {
                 location});
     return ((string)(results[0]));
 }
Example #3
0
 /// <remarks/>
 public void ProcessMyLocationAsync(Location location) {
     this.ProcessMyLocationAsync(location, null);
 }
Example #4
0
File: Form1.cs Project: 47mspa/Lost
        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
            {
            }
        }