/// <summary> /// Initializes a new instance of the <see cref="ProcessForm"/> class. /// </summary> /// <param name="stopDelegate">The stop delegate.</param> /// <param name="startDelegate">The start delegate.</param> /// <param name="startArguments">The start arguments.</param> public ProcessForm( VoidAction stopDelegate, VoidStringArgsAction startDelegate, string[] startArguments ) { //this.allo //this.serviceHost = serviceHost; this.stopDelegate = stopDelegate; this.startDelegate = startDelegate; this.startArguments = startArguments; InitializeComponent(); setupPropertyGrid.SelectedObject = AppDomain.CurrentDomain.SetupInformation; //SetProcessControlButtons(true); try { Console.SetOut(new TextControlTextWriter(this.logRichTextBox)); //Trace.Listeners.Add(new ConsoleTraceListener(false)); } catch (SecurityException ex) { ShowErrorMessage(MessagesResource.CannotLogToTestConsole + Environment.NewLine + ex.ToString()); } }
/// <summary> /// Initializes a new instance of the <see cref="ProcessForm"/> class. /// </summary> /// <param name="stopDelegate">The StopInternal delegate.</param> /// <param name="startDelegate">The StartInternal delegate.</param> /// <param name="startArguments">The StartInternal arguments.</param> public ProcessForm( VoidAction stopDelegate, VoidStringArgsAction startDelegate, string[] startArguments ) { //this.allo //this.serviceHost = serviceHost; this.stopDelegate = stopDelegate; this.startDelegate = startDelegate; this.startArguments = startArguments; InitializeComponent(); setupPropertyGrid.SelectedObject = AppDomain.CurrentDomain.SetupInformation; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; //SetProcessControlButtons(true); try { logTextWriter = new TextControlTextWriter(outputListView, Settings.Default.DescriptionRegex); Console.SetOut(logTextWriter); //Trace.Listeners.Add(new ConsoleTraceListener(false)); } catch (SecurityException ex) { ShowErrorMessage(MessagesResource.CannotLogToTestConsole + Environment.NewLine + ex); } }