예제 #1
0
        void GetNotice()
        {
            if (RegistryData.ChatBlink == 1)
            {
                WindowFlashing.FlashWindowEx(this);
            }
            switch (RegistryData.ChatAudible)
            {
            case 1:     //beep
            {
                SystemSounds.Beep.Play();
                break;
            }

            case 2:     //yip (hidden)
            {
                SoundPlayer player = new SoundPlayer(Resources.YIP);
                player.Play();
                break;
            }

            case 3:     //TEFI (hidden)
            {
                SoundPlayer player = new SoundPlayer(Resources.TEFI_Chimes);
                player.Play();
                break;
            }
            }
        }
예제 #2
0
        private void timChat_Tick(object sender, EventArgs e)
        {
            List <PushChatMessage> chats = Program.net.GetChatMessages(MID);

            if (chats == null)
            {
                return;
            }
            if (chats.Count == 0)
            {
                return;
            }
            foreach (PushChatMessage chat in chats)
            {
                AppendText(chat);
            }
            WindowFlashing.FlashWindowEx(this);
        }