コード例 #1
0
ファイル: IPSController.cs プロジェクト: andresrobinson/ivaps
        public void ShowHideChecklistSelection()
        {
            //CTRL+1 pressed
            if (checklistSpeaker.IsCurrentlySpeaking() || checklistSpeaker.IsCurrentlyPaused())//issue 66, 77
            {
                checklistSpeaker.StopSpeaking();
                Thread.Sleep(200);
                checklistSpeaker.Speak("canceled");
                return;
            }

            //metodo creato per issue 68
            if (checklistSelectionForm == null)
            {
                checklistSelectionForm = new TransparentChoiseForm();
                LoadChecklistPhase();
                checklistSelectionForm.SelectedEvent += new TransparentChoiseForm.SelectedIndexHandler(this.SpeekChecklistPhase);
            }
            checklistSelectionForm.ChooseTitle = "Chose checklist phase to be readed:";
            checklistSelectionForm.Visible     = !checklistSelectionForm.Visible;
            if (checklistSelectionForm.Visible)
            {
                checklistSelectionForm.Activate();
            }
        }