/// <summary> /// Initializes a new instance of the <see cref="ConsoleView"/> class. /// </summary> private ConsoleView() { ConsoleView.AllocConsole(); ConsoleView.InvalidateOutAndError(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting /// unmanaged resources. /// </summary> public void Dispose() { ConsoleView.SetOutAndErrorNull(); ConsoleView.FreeConsole(); }
/// <summary> /// Handles the BeginExecuteScripts event of the ViewModel control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void ViewModel_BeginExecuteScripts(object sender, EventArgs e) { this.consoleView = ConsoleView.New(); }