コード例 #1
0
ファイル: SLNetCom.cs プロジェクト: rcoscali/METAbolt
 private void Self_OnURLLoad(object sender, LoadUrlEventArgs ea)
 {
     if (netcomSync != null)
     {
         netcomSync.BeginInvoke(new OnLoadURLRaise(OnLoadURL), new object[] { ea });
     }
     else
     {
         OnLoadURL(ea);
     }
 }
コード例 #2
0
        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));
        }
コード例 #3
0
        public ntfLoadURL(METAboltInstance 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);
        }