Exemplo n.º 1
0
        /// <summary>Raises the FriendNames event</summary>
        /// <param name="e">A FriendNamesEventArgs object containing the
        /// data returned from the data server</param>
        protected virtual void OnFriendNames(FriendNamesEventArgs e)
        {
            EventHandler <FriendNamesEventArgs> handler = m_FriendNames;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        void Friends_FriendNames(object sender, FriendNamesEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => Friends_FriendNames(sender, e)));
                return;
            }

            RefreshFriendsList();
        }
Exemplo n.º 3
0
 /// <summary>Raises the FriendNames event</summary>
 /// <param name="e">A FriendNamesEventArgs object containing the
 /// data returned from the data server</param>
 protected virtual void OnFriendNames(FriendNamesEventArgs e)
 {
     EventHandler<FriendNamesEventArgs> handler = m_FriendNames;
     if (handler != null)
         handler(this, e);
 }
Exemplo n.º 4
0
        private void Friends_OnFriendNamesReceived(object sender, FriendNamesEventArgs e)
        {
            if (InvokeRequired)
            {
                if (IsHandleCreated)
                {
                    BeginInvoke(new MethodInvoker(() => Friends_OnFriendNamesReceived(sender, e)));
                }

                return;
            }

            BeginInvoke(new MethodInvoker(delegate()
            {
                try
                {
                    if (IsHandleCreated)
                    {
                        RefreshFriendsList();
                    }
                }
                catch { ; }
            }));
        }
Exemplo n.º 5
0
 public virtual void Friends_OnFriendNamesReceived(object sender, FriendNamesEventArgs e) { OnEvent("On-Friend-Names-Received", paramNamesOnFriendNamesReceived, paramTypesOnFriendNamesReceived, e); }