Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleView"/> class.
 /// </summary>
 private ConsoleView()
 {
     ConsoleView.AllocConsole();
     ConsoleView.InvalidateOutAndError();
 }
Пример #2
0
 /// <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();
 }