예제 #1
0
        public FilteredMessageTextBox()
        {
            ToggleSmileyCommand = new DelegateCommand(ToggleSmileyCommand_Execute);

            InitializeComponent();

            ComputedMessage = new NormalChatUserMessage();

            ApplicationViewModel.Current.ChatProxy.MessageSentSuccessfully += ChatProxy_MessageSentSuccessfully;
        }
예제 #2
0
        public CombinedNormalChatUserMessages(NormalChatUserMessage initialMessage)
        {
            FromUser = initialMessage.FromUser;
            Text     = initialMessage.Text;
            ToUsers  = initialMessage.ToUsers;
            Tags     = initialMessage.Tags;
            Messages = new ObservableCollection <NormalChatUserMessage>()
            {
                initialMessage
            };

            MessagesView = CollectionViewSource.GetDefaultView(Messages);
        }
예제 #3
0
 public void AddMessage(NormalChatUserMessage message)
 {
     Date = message.Date;
     Messages.Add(message);
     OnPropertyChanged(nameof(Date));
 }