/// <summary>
        /// Initializes a new instance of the <see cref="TerminalFunctions"/> class.
        /// </summary>
        public TerminalFunctions(ToolWindowContext context) : base(null)
        {
            this.Caption = "TerminalFunctions";

            // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            this.Content = new TerminalFunctionsControl(context);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TerminalFunctionsControl"/> class.
 /// </summary>
 public TerminalFunctionsControl(ToolWindowContext context)
 {
     this.InitializeComponent();
     this.terminalService = context.TerminalService;
     this.package         = context.Package;
     this.env             = new Dictionary <string, string>()
     {
         { "FOO_VAR", "BAR_VAL" },
         { "BAZ_VAR", "BIF_VAL" },
     };
 }