private void ProcessExit()
        {
            if (LectureManagerAgent.Confirm("Exit Lecture Manager?"))
            {
                AgentManager.Instance.RemoveAgent(this.Handle);

                StopSpeaking();

                removeWatchdogs();

                Aster.Utility.Windows.RestorePreviousWindow();
                WindowActivityMonitor.GetActiveWindow();

                this.Close();
            }
        }
        private void frmMain_Load(object sender, System.EventArgs e)
        {
            LectureManagerMainFormContextMenu.SetLectureManagerForm(this);
            this.MaximizeBox = false;
            Utility.Windows.SetWindowSizePercent(Context.AppWindowPosition, this.Handle, 75);

            Log.Debug("adding adhoc agent");
            _lectureManagerAgent = new LectureManagerAgent(this);

            AgentManager.Instance.AddAgent(this.Handle, _lectureManagerAgent);

            TalkWindowManager.Instance.EvtTalkWindowPreVisibilityChanged += new TalkWindowManager.TalkWindowVisibilityChanged(Instance_EvtTalkWindowPreVisibilityChanged);

            enableWatchdogs();

            TTSManager.Instance.ActiveEngine.GetInvoker().EvtExtensionEvent += new OnExtensionEvent(TTSEngine_Event);

            //tts.EvtIndexReached += new TTSSerial.IndexReached(OnIndexReached);
        }
Esempio n. 3
0
		private void frmMain_Load(object sender, System.EventArgs e)
		{
            LectureManagerMainFormContextMenu.SetLectureManagerForm(this);
            this.MaximizeBox = false;
            Utility.Windows.SetWindowSizePercent(Context.AppWindowPosition, this.Handle, 75);

            Log.Debug("adding adhoc agent");
            _lectureManagerAgent = new LectureManagerAgent(this);

            AgentManager.Instance.AddAgent(this.Handle, _lectureManagerAgent);

            TalkWindowManager.Instance.EvtTalkWindowPreVisibilityChanged += new TalkWindowManager.TalkWindowVisibilityChanged(Instance_EvtTalkWindowPreVisibilityChanged);

            enableWatchdogs();

            TTSManager.Instance.ActiveEngine.GetInvoker().EvtExtensionEvent += new OnExtensionEvent(TTSEngine_Event);

            //tts.EvtIndexReached += new TTSSerial.IndexReached(OnIndexReached);
		}