Exemple #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 void Start(EditableBadge editBadge, PrivateCenter3 privCenter)
 {
     _editBadge = editBadge;
     _privCenter = privCenter;
     _timer = new DispatcherTimer {Interval = TimeSpan.FromSeconds(2)};
     _timer.Tick += TimerOnTick;
     _timer.Start();
 }
Exemple #3
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;
            }
        }