Esempio n. 1
0
 void client_ClanMembershipReceived(object sender, ClanMembershipEventArgs e)
 {
     ThreadStart update = delegate
     {
         lbClanMembers.Items.Clear();
         this.TabText = string.Format(CultureInfo.CurrentCulture, "Clan List: {0}", e.Tag);
     };
     if (InvokeRequired)
         BeginInvoke(update);
     else
         update();
 }
Esempio n. 2
0
        private void HandleClanInfo(ParseData pd)
        {
            DataReader dr = new DataReader(pd.Data);
            dr.Seek(1);
            string clanTag = dr.ReadDwordString(0);
            ClanRank rank = (ClanRank)dr.ReadByte();

            ClanMembershipEventArgs args = new ClanMembershipEventArgs(clanTag, rank);
            args.EventData = pd;
            OnClanMembershipReceived(args);

            BncsPacket pck = new BncsPacket((byte)BncsPacketId.ClanMemberList);
            pck.InsertInt32(Interlocked.Increment(ref m_clanCookie));
            Send(pck);
        }
Esempio n. 3
0
 public void OnClanMembershipReceived(BNSharp.BattleNet.Clans.ClanMembershipEventArgs e)
 {
     m_host.OnClanMembershipReceived(e);
 }
Esempio n. 4
0
 void ClanMembershipStatusChanged(object sender, ClanMembershipEventArgs e)
 {
     m_isInClan = !string.IsNullOrEmpty(e.Tag);
     Invokee result = () => beginFormingANewClanToolStripMenuItem.Enabled = !m_isInClan;
     if (InvokeRequired)
         Invoke(result);
     else
         result();
 }