Contains a parcels dwell data returned from the simulator in response to an RequestParcelDwell
Inheritance: System.EventArgs
コード例 #1
0
        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());

                });
            }
        }
コード例 #2
0
ファイル: ParcelManager.cs プロジェクト: RavenB/gridsearch
 /// <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);
 }
コード例 #3
0
ファイル: RegionInfo.cs プロジェクト: nooperation/radegast
        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");
        }
コード例 #4
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);
         });
     }
 }
コード例 #5
0
ファイル: AllEvents.cs プロジェクト: drzo/opensim4opencog
 public virtual void Parcels_OnParcelDwell(object sender, ParcelDwellReplyEventArgs e) { OnEvent("On-Parcel-Dwell", paramNamesOnParcelDwell, paramTypesOnParcelDwell, e); }
コード例 #6
0
        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);
        }
コード例 #7
0
ファイル: ChatConsole.cs プロジェクト: WajdiCharfi/METAbolt
        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();
            }));
        }