Exemple #1
0
        internal void handerRing(Phone phone, RingEventArgs e)
        {
            switch (e.ringType)
            {
            case "QQ":
                Console.WriteLine("来QQ消息了");
                break;

            case "Wechat":
                Console.WriteLine("来微信消息了");
                break;

            default:
                Console.WriteLine("来其他消息了");
                break;
            }
        }
Exemple #2
0
        internal void handlerRing(object sender, EventArgs e)
        {
            RingEventArgs ringEventArgs = e as RingEventArgs;

            switch (ringEventArgs.ringType)
            {
            case "QQ":
                Console.WriteLine("来QQ消息了");
                break;

            case "Wechat":
                Console.WriteLine("来微信消息了");
                break;

            default:
                Console.WriteLine("来其他消息了");
                break;
            }
        }