public void CloseCurrentView()
        {
            if (string.IsNullOrEmpty(this.ViewId))
            {
                throw new InvalidOperationException("Can not close current view. No view ID has been associated with this message service");
            }

            if (_closeCurrentViewRequested == false)
            {
                ConsoleMessageQueueFacade.Enqueue(new CloseViewMessageQueueItem {
                    ViewId = this.ViewId
                }, this.ConsoleId);
            }

            _closeCurrentViewRequested = true;
        }
        public void RefreshTreeSection(EntityToken entityToken)
        {
            if (entityToken == null)
            {
                throw new ArgumentNullException("entityToken");
            }

            if (GlobalSettingsFacade.BroadcastConsoleElementChanges)
            {
                ConsoleMessageQueueFacade.Enqueue(new RefreshTreeMessageQueueItem {
                    EntityToken = entityToken
                }, null);
            }
            else
            {
                ConsoleMessageQueueFacade.Enqueue(new RefreshTreeMessageQueueItem {
                    EntityToken = entityToken
                }, this.ConsoleId);
            }
        }
 public void BindEntityTokenToView(string entityToken)
 {
     ConsoleMessageQueueFacade.Enqueue(new BindEntityTokenToViewQueueItem {
         ViewId = ViewId, EntityToken = entityToken
     }, this.ConsoleId);
 }
 public void SelectElement(string entityToken)
 {
     ConsoleMessageQueueFacade.Enqueue(new SelectElementQueueItem {
         EntityToken = entityToken
     }, this.ConsoleId);
 }
 public void BroadcastMessage(string name, string value)
 {
     ConsoleMessageQueueFacade.Enqueue(new BroadcastMessageQueueItem {
         Name = name, Value = value
     }, this.ConsoleId);
 }
 public void SaveStatus(bool succeeded)
 {
     ConsoleMessageQueueFacade.Enqueue(new SaveStatusConsoleMessageQueueItem {
         ViewId = ViewId, Succeeded = succeeded
     }, this.ConsoleId);
 }
 public void LockSystem()
 {
     ConsoleMessageQueueFacade.Enqueue(new LockSystemConsoleMessageQueueItem(), this.ConsoleId);
 }
 public void CollapseAndRefresh()
 {
     ConsoleMessageQueueFacade.Enqueue(new CollapseAndRefreshConsoleMessageQueueItem(), this.ConsoleId);
 }
 public void RebootConsole()
 {
     ConsoleMessageQueueFacade.Enqueue(new RebootConsoleMessageQueueItem(), this.ConsoleId);
 }
 public void ShowGlobalMessage(DialogType dialogType, string title, string message)
 {
     ConsoleMessageQueueFacade.Enqueue(new MessageBoxMessageQueueItem {
         DialogType = dialogType, Title = title, Message = message
     }, null);
 }
 public void ShowLogEntry(Type sender, LogLevel logLevel, string message)
 {
     ConsoleMessageQueueFacade.Enqueue(new LogEntryMessageQueueItem {
         Sender = sender, Level = logLevel, Message = message
     }, this.ConsoleId);
 }