コード例 #1
0
        /// <summary>
        /// Shows the dialog with the output produced by the syntactical
        /// analisys process.
        /// </summary>
        /// <param name="sender">
        /// A <see cref="System.Object"/>
        /// </param>
        /// <param name="args">
        /// A <see cref="EventArgs"/>
        /// </param>
        private void OnParsingShowOutputBtnClicked(object sender, EventArgs args)
        {
            // We know the output is correct because if not the button
            // wouldn't have been sensitivized.
            string output = controller.Output;

            Output.OutputDialog dialog =
                new Output.OutputDialog(MainRecognizerWindow,
                                        output,
                                        MainRecognizerWindow.OCRWidget.StartImage);

            dialog.Show();
            dialog.Destroy();
        }
コード例 #2
0
		/// <summary>
		/// Shows the dialog with the output produced by the syntactical
		/// analisys process.
		/// </summary>
		/// <param name="sender">
		/// A <see cref="System.Object"/>
		/// </param>
		/// <param name="args">
		/// A <see cref="EventArgs"/>
		/// </param>
		private void OnParsingShowOutputBtnClicked(object sender, EventArgs args)
		{
			// We know the output is correct because if not the button 
			// wouldn't have been sensitivized.
			string output =  controller.Output;
			
			Output.OutputDialog dialog = 
				new Output.OutputDialog(MainRecognizerWindow,
				                        output,
				                        MainRecognizerWindow.OCRWidget.StartImage);
			
			dialog.Show();
			dialog.Destroy();
		}