Пример #1
0
        public void ReadMessage()
        {
            var result = _manager.ReadMessage(Instance);

            if (result)
            {
                MessageBox.Show("Message has been read from queue", "Read Message", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            else
            {
                MessageBox.Show("No message has been read from queue", "Read Message", MessageBoxButton.OK, MessageBoxImage.Warning);
            }

            _manager.UpdateQueue(Instance);
            NotifyOfPropertyChange(() => Instance);
        }