コード例 #1
0
        public async Task Handle(SelectedExplorerItemChanged @event)
        {
            selectedExplorerItem = @event.SelectedExplorerItem;
            await RefreshMessages();

            SearchBar.NotifyPropertiesChanged();
        }
コード例 #2
0
 private void NotifyPropertiesChanged()
 {
     NotifyOfPropertyChange(() => SelectedExplorerItem);
     NotifyOfPropertyChange(() => CanCopyHeaders);
     NotifyOfPropertyChange(() => CanCopyMessageId);
     NotifyOfPropertyChange(() => CanReturnToSource);
     NotifyOfPropertyChange(() => CanRetryMessage);
     SearchBar.NotifyPropertiesChanged();
 }
コード例 #3
0
        public void Handle(SelectedMessageChanged message)
        {
            var msg = Selection.SelectedMessage;

            if (msg == null)
            {
                return;
            }

            var newFocusedRow = Rows.FirstOrDefault(row => row.MessageId == msg.MessageId &&
                                                    row.TimeSent == msg.TimeSent &&
                                                    row.Id == msg.Id);

            if (newFocusedRow != null)
            {
                Selection.SelectedMessage = newFocusedRow;
                SearchBar.NotifyPropertiesChanged();
            }
        }
コード例 #4
0
 void NotifyPropertiesChanged()
 {
     NotifyOfPropertyChange(() => SelectedExplorerItem);
     SearchBar.NotifyPropertiesChanged();
 }
コード例 #5
0
 public void Handle(SelectedExplorerItemChanged @event)
 {
     selectedExplorerItem = @event.SelectedExplorerItem;
     RefreshMessages();
     SearchBar.NotifyPropertiesChanged();
 }