private void Devices_CurrentAltitudeChanged(object sender, DistanceEventArgs e) { if (_IsUsingRealTimeData) { Value = e.Distance; } }
private void OnValueChanged(DistanceEventArgs e) { if (ValueChanged != null) { ValueChanged(this, e); } }
private void Start() { var EventArgs = new DistanceEventArgs(); EventArgs.distance_value = distance; OnDistanceChanged(this, EventArgs); }
private void nmeaInterpreter1_AltitudeChanged(object sender, DistanceEventArgs e) { BeginInvoke(new MethodInvoker(delegate() { altitudeTextBox.Text = e.Distance.ToString(); altitudeLabel.Text = altitudeTextBox.Text; })); }
private async void UpperTankSensor_EventDistance(object sender, DistanceEventArgs e) { await tbkUpperTankSensor.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { tbkUpperTankSensor.Text = $"Status : {e.Depth}"; upperTankHeight = e.Depth; }); }
void ElevationChanged(object sender, DistanceEventArgs e) { lock (syncRoot) { Elevation = e.Distance; } Debug.WriteLine("Altitude changed: " + Elevation.ToString()); NotifyOfGpsDataUpdate(); }
// Start is called before the first frame update public void updateDistanceValue(SliderEventData eventData) { distance = convertToDistance(eventData.NewValue); setText(distance.ToString()); var EventArgs = new DistanceEventArgs(); EventArgs.distance_value = distance; OnDistanceChanged(this, EventArgs); }
static void GeometryService_DistanceCompleted(object sender, DistanceEventArgs e) { double Distance; try { Distance = double.Parse(ConfigurationManager.AppSettings["VALIDDISTANCE"].ToString()); } catch (Exception) { Distance = 50; // 默认距离 50m } if (e.Distance <= Distance) { // CloseGQY(); } }
void GeometryService_DistanceCompleted(object sender, DistanceEventArgs e) { ResponseTextBlock.Text = String.Format("The distance between geometries is {0} miles", Math.Round(e.Distance, 3)); MyDrawObject.IsEnabled = true; }
/// <summary> /// Picks up pace changes from the model and sends them to the view. /// </summary> /// <param name="obj"></param> /// <param name="distance"></param> public void OnDistanceChange(object obj, DistanceEventArgs distance) { Distance = CreateStrings.DistanceString(distance.Distance); }
/// <summary> /// Picks up distance changes for the model /// </summary> /// <param name="obj"></param> /// <param name="distance"></param> public void OnDistanceChange(object obj, DistanceEventArgs distance) { Distance = distance.Distance; }
/// <summary> /// Event triggered when distance changes. /// </summary> /// <param name="sender"></param> /// <param name="args">DistanceEventArgs.Diff describing distance chanege</param> public void DistanceChanged(object sender, DistanceEventArgs args) { Travelers.ForEach(delegate(Traveler tmp) { tmp.PartialDistance += args.Diff; }); }
private void UpdateDistance(object sender, DistanceEventArgs e) { dist_radius = e.distance_value; resultmodel.setDistance(dist_radius); }
// Fired when detecting an obstacle private static void OnDistanceDetected(object sender, DistanceEventArgs e) { Debug.Print(e.Distance.ToString()); }
private void Devices_CurrentAltitudeChanged(object sender, DistanceEventArgs e) { if (_isUsingRealTimeData) Value = e.Distance; }
private void OnValueChanged(DistanceEventArgs e) { if (ValueChanged != null) ValueChanged(this, e); }