void Parcels_ParcelDwellReply(object sender, ParcelDwellReplyEventArgs e) { //Logger.Log("Got dwell for "+parcelid.ToString()+" : local id "+localid.ToString()+" is "+dwell.ToString(),Helpers.LogLevel.Debug); Gtk.TreeIter iter; if(this.parcel_to_tree.TryGetValue(e.LocalID,out iter)) { Gtk.Application.Invoke(delegate{ this.parcels_store.SetValue(iter,3,e.Dwell.ToString()); }); } }
/// <summary>Raises the ParcelDwellReply event</summary> /// <param name="e">A ParcelDwellReplyEventArgs object containing the /// data returned from the simulator</param> protected virtual void OnParcelDwellReply(ParcelDwellReplyEventArgs e) { EventHandler<ParcelDwellReplyEventArgs> handler = m_DwellReply; if (handler != null) handler(this, e); }
void Parcels_ParcelDwellReply(object sender, ParcelDwellReplyEventArgs e) { if (InvokeRequired) { if (IsHandleCreated || !instance.MonoRuntime) BeginInvoke(new MethodInvoker(() => Parcels_ParcelDwellReply(sender, e))); return; } lblTraffic.Text = e.Dwell.ToString("0"); }
void Parcels_ParcelDwellReply(object sender, ParcelDwellReplyEventArgs e) { if (this.current_parcelid == e.LocalID) { Gtk.Application.Invoke(delegate { current_parcel_dwell = (int)e.Dwell; this.updatestatusinfo(true); }); } }
public virtual void Parcels_OnParcelDwell(object sender, ParcelDwellReplyEventArgs e) { OnEvent("On-Parcel-Dwell", paramNamesOnParcelDwell, paramTypesOnParcelDwell, e); }
public override void Parcels_OnParcelDwell(object sender, ParcelDwellReplyEventArgs e) { lock (parcelInfoRequests) { var parcelID = e.ParcelID; if (parcelInfoRequests.Contains(parcelID)) return; parcelInfoRequests.Add(parcelID); client.Parcels.RequestParcelInfo(parcelID); } //base.Parcels_OnParcelDwell(parcelID, localID, dwell); }
private void Parcels_OnParcelDwell(object sender, ParcelDwellReplyEventArgs e) { if (this.instance.MainForm.parcel != null) { if (this.instance.MainForm.parcel.LocalID != e.LocalID) return; } BeginInvoke(new MethodInvoker(delegate() { UpdateMedia(); })); }