コード例 #1
0
ファイル: PrivMsg.xaml.cs プロジェクト: atoumey/z-chat
        void IRC_OnQueryNotice(object sender, IrcEventArgs e)
        {
            if (e.Data.Nick != QueriedUser) return;

            ColorTextPair[] source;
            if (e.Data.Nick == null)
                source = new ColorTextPair[] { };
            else
                source = new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, "*"),
                                         new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Nick),
                                         new ColorTextPair(ZChat.Options.QueryTextFore, "*") };

            Output(source, new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Message) });
            ShowActivity();
        }
コード例 #2
0
ファイル: ChannelWindow.xaml.cs プロジェクト: atoumey/z-chat
        void irc_OnQueryNotice(object sender, IrcEventArgs e)
        {
            ColorTextPair[] source;
            if (e.Data.Nick == null)
                source = new ColorTextPair[] {};
            else
                source = new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, "-"),
                                         new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Nick),
                                         new ColorTextPair(ZChat.Options.QueryTextFore, "-") };

            Output(source, new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Message) });

            lastQuerySender = e.Data.Nick;
            ShowActivity();
        }