示例#1
0
        public static void AddDecryptCount(string type, Counter counter)
        {
            if (counter == null)
            {
                return;
            }

            if (PHONE.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptPhoneNum);
            }
            else if (NICK.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptNickNum);
            }
            else if (RECEIVER_NAME.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptReceiverNameNum);
            }
            else if (SIMPLE.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptSimpleNum);
            }
            else if (SEARCH.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptSearchNum);
            }
        }
示例#2
0
 public static void AddDecryptCount(string type)
 {
     if (PHONE.Equals(type))
     {
         Interlocked.Increment(ref DecryptPhoneNum);
     }
     else if (NICK.Equals(type))
     {
         Interlocked.Increment(ref DecryptNickNum);
     }
     else if (RECEIVER_NAME.Equals(type))
     {
         Interlocked.Increment(ref DecryptReceiverNameNum);
     }
 }
示例#3
0
 public static void AddSearchCount(string type)
 {
     if (PHONE.Equals(type))
     {
         Interlocked.Increment(ref SearchPhoneNum);
     }
     else if (NICK.Equals(type))
     {
         Interlocked.Increment(ref SearchNickNum);
     }
     else if (RECEIVER_NAME.Equals(type))
     {
         Interlocked.Increment(ref SearchReceiverNameNum);
     }
 }
示例#4
0
 private void NICK_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     NICK.Clear();
 }
示例#5
0
 public NICKHandler(ISession client, ChatCommandBase cmd) : base(client, cmd)
 {
     _nickCmd = (NICK)cmd;
 }