Beispiel #1
0
        void PublishErrorMessage(string message, Exception excep)
        {
            var userMessage = new UserMessageEventArgs(UserMessageTypes.Error, message, excep);

            _eventAggregator.GetEvent <UserMessageEvent>().Publish(userMessage);
        }
Beispiel #2
0
        void PublishWarningMessage(string message)
        {
            var userMessage = new UserMessageEventArgs(UserMessageTypes.Warning, message);

            _eventAggregator.GetEvent <UserMessageEvent>().Publish(userMessage);
        }
 private void MainWindowViewModel_UserMessage(object sender, UserMessageEventArgs e)
 {
     MessageBox.Show(e.Message);
 }
 public void ProcessMessage(UserMessageEventArgs args)
 {
     ShowMessageBox(args.UserMessage);
 }
 private void Server_PrivateNotice(object sender, UserMessageEventArgs e)
 {
     ChatLines.Add(new PrivateNoticeViewModel(DateTime.Now, e.Message, e.User.Nick));
 }
Beispiel #6
0
 public UserMessageViewModel(UserMessageEventArgs userMessageEventArgs)
 {
     _userMessageEventArgs = userMessageEventArgs;
 }
Beispiel #7
0
 private void Channel_OnAction(object sender, UserMessageEventArgs e)
 {
     AddLine(ChannelStrings.Action.With(e.User.Nick, e.Message));
 }
Beispiel #8
0
 private void Listener_OnPrivate(object sender, UserMessageEventArgs e)
 {
     GetPM(e.User).OnMessageReceived(new DataEventArgs <string>(e.Message));
 }
Beispiel #9
0
 private void ParentServer_OnPrivateNotice(object sender, UserMessageEventArgs e)
 {
     AddLine(string.Format("-{0}: {1}-", e.User.Nick, e.Message));
 }
 private void ParentServer_OnPrivateNotice(object sender, UserMessageEventArgs e)
 {
     AddLine(CommonStrings.PrivateNotice.With(e.User.Nick, e.Message));
 }
Beispiel #11
0
 // Receive a message from a user
 void OnUserMessage(UserMessageEventArgs userMessageArgs)
 {
     AppendAndScroll("<b>PM:" + userMessageArgs.From + "</b>: " + userMessageArgs.Message);
 }
 public void ProcessMessage(UserMessageEventArgs message)
 {
     Show(null, "User Message", message.Message);
 }
Beispiel #13
0
 private void Listener_OnPrivateNotice(object sender, UserMessageEventArgs e)
 {
     PrivateNotice.Fire(this, new UserMessageEventArgs(e.User, e.Message));
 }
 private void Channel_MessagedChannel(object sender, UserMessageEventArgs e)
 {
     ChatLines.Add(new ChannelMessageViewModel(DateTime.Now, e.Message, e.User));
 }
Beispiel #15
0
 private void Channel_MessagedChannel(object sender, UserMessageEventArgs e)
 {
     AddLine(ChannelStrings.PublicMessage.With(e.User.NamesLiteral, e.Message));
 }
 private void Channel_OnUserQuitted(object sender, UserMessageEventArgs e)
 {
     AddMessage(ChannelStrings.Quit.With(e.User.Nick, e.User.HostMask, e.Message));
 }
Beispiel #17
0
 /// <summary>
 /// Handles the <see cref="ITeamProjectDocumentManager.UserMessage"/> event.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The message details.</param>
 private void HandleUserMessage(object sender, UserMessageEventArgs e)
 {
     this.ribbon.DisplayMessage(e.MessageType, this.ErrorTitle, e.Message, null);
 }