protected virtual void OnLoadURL(OpenMetaverse.LoadUrlEventArgs e) { if (LoadURLReceived != null) { LoadURLReceived(this, e); } }
public ntfLoadURL(RadegastInstance instance, LoadUrlEventArgs e) { InitializeComponent(); Disposed += new EventHandler(ntfLoadURL_Disposed); this.ev = e; this.instance = instance; instance.Names.NameUpdated += new EventHandler<UUIDNameReplyEventArgs>(Avatars_UUIDNameReply); SetText(); // Fire off event NotificationEventArgs args = new NotificationEventArgs(instance); args.Text = rtbText.Text; args.Buttons.Add(btnGoTo); args.Buttons.Add(btnCancel); FireNotificationCallback(args); }
/// <summary>Raises the LoadURL event</summary> /// <param name="e">A LoadUrlEventArgs object containing the /// data returned from the data server</param> protected virtual void OnLoadURL(LoadUrlEventArgs e) { EventHandler<LoadUrlEventArgs> handler = m_LoadURL; if (handler != null) handler(this, e); }
void Self_LoadURL(object sender, LoadUrlEventArgs e) { // Is the object or the owner muted? if (null != client.Self.MuteList.Find(m => (m.Type == MuteType.Object && m.ID == e.ObjectID) // muted object by id || (m.Type == MuteType.ByName && m.Name == e.ObjectName) // object muted by name || (m.Type == MuteType.Resident && m.ID == e.OwnerID) // object's owner muted )) return; instance.MainForm.AddNotification(new ntfLoadURL(instance, e)); }
private void Self_OnURLLoad(object sender, LoadUrlEventArgs ea) { if (netcomSync != null) netcomSync.BeginInvoke(new OnLoadURLRaise(OnLoadURL), new object[] { ea }); else OnLoadURL(ea); }
public virtual void Self_OnLoadURL(object sender, LoadUrlEventArgs e) { OnEvent("On-Load-U-R-L", paramNamesOnLoadURL, paramTypesOnLoadURL, e); }
private void netcom_LoadURLReceived(object sender, LoadUrlEventArgs e) { //e.Message; //e.ObjectName; //e.url; if (instance.IsObjectMuted(e.ObjectID, e.ObjectName)) return; if (urlbuffer.RingBuffer(instance)) { ChatBufferItem dalert = new ChatBufferItem( DateTime.Now, "Too many URL offers are coming in too quickly. Flood Protection is in operation for your security...", ChatBufferTextStyle.Alert); ProcessBufferItem(dalert, true); return; } DialogResult sret = MessageBoxEx.Show(e.ObjectName.ToString(CultureInfo.CurrentCulture) + "\nowned by " + e.OwnerID.ToString() + " is offering you a URL.\n\nClick 'OK' to visit.", "URL offer...", MessageBoxButtons.OKCancel, 15000); if (sret == DialogResult.OK) { //ShellExecute(this.Handle, "open", e.url.ToString(), null, null, 0); System.Diagnostics.Process.Start(@e.URL.ToString(CultureInfo.CurrentCulture)); } }