コード例 #1
0
		private void OnStartProgramCompileExit(StepDialog dialog)
		{
			if (dialog.ExecutedOk)
			{
				var start = new ExecuteProgramDialog (this.programInformation, true, useEscToStop);
				start.Start (Parent);		
			}			
		}
コード例 #2
0
 private void OnStartProgramCompileExit(StepDialog dialog)
 {
     if (dialog.ExecutedOk)
     {
         var start = new ExecuteProgramDialog(this.programInformation, true, useEscToStop);
         start.Start(Parent);
     }
 }
コード例 #3
0
        private void OnSelectDialogExit(SelectDialog <string> dialog)
        {
            if (!dialog.EscPressed)
            {
                switch (dialog.GetSelectionIndex())
                {
                case 0:
                    var startDialog = new ExecuteProgramDialog(this.programInformation, false, useEscToStop);
                    startDialog.Start(Parent);
                    break;

                case 1:
                    if (!programInformation.IsAOTCompiled)
                    {
                        compileBeforeExecution.SetFocus(Parent, OnCompileInfoDialogExit);
                    }
                    else
                    {
                        var start = new ExecuteProgramDialog(this.programInformation, true, useEscToStop);
                        start.Start(Parent);
                    }
                    break;

                case 2:
                    if (programInformation.IsAOTCompiled)
                    {
                        aotQuestionDialog.SetFocus(Parent, OnCompileDialogExit);
                    }
                    else
                    {
                        compileDialog.SetFocus(Parent);
                    }
                    break;

                case 3:
                    deleteQuestionDialog.SetFocus(Parent, OnDeleteDialogExit);
                    break;
                }
            }
        }
コード例 #4
0
		private void OnSelectDialogExit(SelectDialog<string> dialog)
		{
			if (!dialog.EscPressed) {
				switch (dialog.GetSelectionIndex ()) {
				case 0:
					var startDialog = new ExecuteProgramDialog (this.programInformation, false, useEscToStop);
					startDialog.Start (Parent);
					break;
				case 1:
					if (!programInformation.IsAOTCompiled)
					{
						compileBeforeExecution.SetFocus (Parent, OnCompileInfoDialogExit); 
					} 
					else 
					{
						var start = new ExecuteProgramDialog (this.programInformation, true, useEscToStop);
						start.Start (Parent);
					}
					break;
				case 2:
					if (programInformation.IsAOTCompiled)
					{
						aotQuestionDialog.SetFocus (Parent,OnCompileDialogExit);
					} 
					else 
					{
						compileDialog.SetFocus (Parent);
					}
					break;
				case 3:
					deleteQuestionDialog.SetFocus (Parent,OnDeleteDialogExit);
					break;
				}
			}		
		}