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); } }
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); } }
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); } }
private void NICK_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { NICK.Clear(); }
public NICKHandler(ISession client, ChatCommandBase cmd) : base(client, cmd) { _nickCmd = (NICK)cmd; }