Example #1
0
        public void CloseUserDashboards()
        {
            if (privateDiscBoard == null && discDashboard == null)
            {
                return;
            }

            if (privateDiscBoard != null)
            {
                privateDiscBoard.Close();
                privateDiscBoard = null;
            }

            if (discDashboard != null)
            {
                discDashboard.Close();
                discDashboard = null;
            }

            if (htmlBackgroundWnd != null)
            {
                htmlBackgroundWnd.Close();
                htmlBackgroundWnd = null;
            }

            MessageDlg.Show("Moderator is offline or selected session is not running. User dashboards have been closed",
                            "Info",
                            MessageBoxButton.OK,
                            MessageBoxImage.Information);
        }
        public EnlargeOpenAttachmentCloseBot(PublicCenter center)
        {
            _publicCenter = center;
            _rnd          = new Random();
            _enabled      = true;

            RunAsync().GetAwaiter().OnCompleted(() => {});
        }
Example #3
0
        public SuperBot(PublicCenter center)
        {
            _publicCenter = center;
            _rnd          = new Random();
            _enabled      = true;

            ExplanationModeMediator.Inst.ExplanationModeEnabled = true;

            RunAsync().GetAwaiter().OnCompleted(() => { });
        }
Example #4
0
        public void CloseAndDispose()
        {
            mainWnd = null;

            if (discDashboard != null)
            {
                discDashboard.Close();
                discDashboard = null; //todo
            }

            if (moderDashboard != null)
            {
                moderDashboard.Close();
                moderDashboard = null;
            }

            if (resViewer != null)
            {
                resViewer.Close();
                resViewer = null;
            }

            if (privateDiscBoard != null)
            {
                privateDiscBoard.Close();
                privateDiscBoard = null;
            }

            if (persMgr != null)
            {
                persMgr.Close();
                persMgr = null;
            }

            if (htmlBackgroundWnd != null)
            {
                htmlBackgroundWnd.Close();
                htmlBackgroundWnd = null;
            }
        }
Example #5
0
 public BotsViewModel(PublicCenter publicCenter)
 {
     _publicCenter = publicCenter;
 }