/// <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); }
public string ProcessMyLocation(Location location) { object[] results = this.Invoke("ProcessMyLocation", new object[] { location}); return ((string)(results[0])); }
/// <remarks/> public void ProcessMyLocationAsync(Location location) { this.ProcessMyLocationAsync(location, null); }
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 { } }