// Use this constructor for minimize and maximize buttons and no F1 Help. public VersionDialog(IServiceProvider serviceProvider) { this.HasMaximizeButton = false; this.HasMinimizeButton = false; this.serviceProvider = serviceProvider; InitializeComponent(); config = NuGetConfigurator.LoadConfig(); WindowStartupLocation = WindowStartupLocation.CenterScreen; }
public NuGetCommands(IOutput output) { LastCreatedFile = null; this.config = NuGetConfigurator.LoadConfig(); processInfo.FileName = $@"{NuGetToolsPackage.ExtensionPath}\Resources\nuget.exe"; processInfo.UseShellExecute = false; processInfo.RedirectStandardOutput = true; processInfo.RedirectStandardError = true; processInfo.CreateNoWindow = true; this.output = output; }