Exemple #1
0
        /// <summary>
        /// Sets the status of the host control.
        /// </summary>
        public void SetHostControlStatus(HostControlStatus newStatus)
        {
            if (RCThread.CurrentThread == MainForm.UiThread)
            {
                throw new Exception("This call is not allowed from the UI-thread!");
            }

            HostCtrlStatusMgrCall uiCall = new HostCtrlStatusMgrCall(this.statusMgr.HostStatus, newStatus);

            this.ui.InvokeUI(uiCall);
        }
Exemple #2
0
 /// <summary>
 /// Constructs a HostCtrlStatusMgrCall object.
 /// </summary>
 public HostCtrlStatusMgrCall(HostControlStatusManager statusMgr, HostControlStatus newStatus)
 {
     this.statusMgr = statusMgr;
     this.newStatus = newStatus;
 }