diff --git a/Lanayo.VagrantManager/Core/Providers/VagrantGlobalStatusScanner.cs b/Lanayo.VagrantManager/Core/Providers/VagrantGlobalStatusScanner.cs index 61fc8f6..c2cfa8a 100644 --- a/Lanayo.VagrantManager/Core/Providers/VagrantGlobalStatusScanner.cs +++ b/Lanayo.VagrantManager/Core/Providers/VagrantGlobalStatusScanner.cs @@ -25,8 +25,8 @@ public string[] GetInstancePaths() { }; p.Start(); - p.WaitForExit(); string outputString = p.StandardOutput.ReadToEnd(); + p.WaitForExit(); if (p.ExitCode == 0) { Regex regex = new Regex("(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+([A-Z]:/.*)(\\n|$)"); diff --git a/Lanayo.VagrantManager/Core/Providers/VirtualBoxServiceProvider.cs b/Lanayo.VagrantManager/Core/Providers/VirtualBoxServiceProvider.cs index bd7e144..c86dbe4 100644 --- a/Lanayo.VagrantManager/Core/Providers/VirtualBoxServiceProvider.cs +++ b/Lanayo.VagrantManager/Core/Providers/VirtualBoxServiceProvider.cs @@ -54,8 +54,8 @@ public string[] GetAllVirtualMachineUUIDs() { return uuids.ToArray(); } - p.WaitForExit(); string outputString = p.StandardOutput.ReadToEnd(); + p.WaitForExit(); if (p.ExitCode == 0) { Regex regex = new Regex("\"[^\"]+\"\\s+\\{([^\\}]+)\\}"); @@ -88,8 +88,8 @@ public VirtualBoxMachineInfo GetVirtualMachineInfoFromUUID(string uuid) { return null; } - p.WaitForExit(); string outputString = p.StandardOutput.ReadToEnd(); + p.WaitForExit(); if (p.ExitCode == 0) { return new VirtualBoxMachineInfo(outputString); diff --git a/Lanayo.VagrantManager/Core/Vagrant/VagrantInstance.cs b/Lanayo.VagrantManager/Core/Vagrant/VagrantInstance.cs index 3f44b00..e6b10dd 100644 --- a/Lanayo.VagrantManager/Core/Vagrant/VagrantInstance.cs +++ b/Lanayo.VagrantManager/Core/Vagrant/VagrantInstance.cs @@ -75,8 +75,8 @@ public void QueryMachines() { }; p.Start(); - p.WaitForExit(); string outputString = p.StandardOutput.ReadToEnd(); + p.WaitForExit(); Regex regex = new Regex("([\\w-_\\.]+)\\s+([\\w\\s]+) \\(\\w+\\)"); MatchCollection matchCollection = regex.Matches(outputString); diff --git a/Lanayo.VagrantManager/Lanayo.Vagrant_Manager.csproj b/Lanayo.VagrantManager/Lanayo.Vagrant_Manager.csproj index e3cb627..4ccad20 100644 --- a/Lanayo.VagrantManager/Lanayo.Vagrant_Manager.csproj +++ b/Lanayo.VagrantManager/Lanayo.Vagrant_Manager.csproj @@ -22,7 +22,7 @@ false false true - 3 + 5 1.0.0.%2a false true diff --git a/Lanayo.VagrantManager/Properties/AssemblyInfo.cs b/Lanayo.VagrantManager/Properties/AssemblyInfo.cs index 9ad2040..710171e 100644 --- a/Lanayo.VagrantManager/Properties/AssemblyInfo.cs +++ b/Lanayo.VagrantManager/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.4")] -[assembly: AssemblyFileVersion("1.0.0.4")] +[assembly: AssemblyVersion("1.0.0.5")] +[assembly: AssemblyFileVersion("1.0.0.5")] diff --git a/Lanayo.VagrantManager/Windows/TaskOutputWindow.Designer.cs b/Lanayo.VagrantManager/Windows/TaskOutputWindow.Designer.cs index 599cecd..0699105 100644 --- a/Lanayo.VagrantManager/Windows/TaskOutputWindow.Designer.cs +++ b/Lanayo.VagrantManager/Windows/TaskOutputWindow.Designer.cs @@ -48,7 +48,7 @@ private void InitializeComponent() { this.TaskProgressBar.Location = new System.Drawing.Point(16, 30); this.TaskProgressBar.MarqueeAnimationSpeed = 10; this.TaskProgressBar.Name = "TaskProgressBar"; - this.TaskProgressBar.Size = new System.Drawing.Size(365, 23); + this.TaskProgressBar.Size = new System.Drawing.Size(756, 23); this.TaskProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee; this.TaskProgressBar.TabIndex = 1; // @@ -62,7 +62,7 @@ private void InitializeComponent() { this.TaskCommandTextBox.Location = new System.Drawing.Point(16, 60); this.TaskCommandTextBox.Name = "TaskCommandTextBox"; this.TaskCommandTextBox.ReadOnly = true; - this.TaskCommandTextBox.Size = new System.Drawing.Size(365, 20); + this.TaskCommandTextBox.Size = new System.Drawing.Size(756, 20); this.TaskCommandTextBox.TabIndex = 2; this.TaskCommandTextBox.Text = "Task Command"; // @@ -70,7 +70,7 @@ private void InitializeComponent() { // this.CloseWindowButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.CloseWindowButton.Enabled = false; - this.CloseWindowButton.Location = new System.Drawing.Point(260, 288); + this.CloseWindowButton.Location = new System.Drawing.Point(651, 526); this.CloseWindowButton.Name = "CloseWindowButton"; this.CloseWindowButton.Size = new System.Drawing.Size(120, 23); this.CloseWindowButton.TabIndex = 4; @@ -81,7 +81,7 @@ private void InitializeComponent() { // CancelTaskButton // this.CancelTaskButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.CancelTaskButton.Location = new System.Drawing.Point(179, 288); + this.CancelTaskButton.Location = new System.Drawing.Point(570, 526); this.CancelTaskButton.Name = "CancelTaskButton"; this.CancelTaskButton.Size = new System.Drawing.Size(75, 23); this.CancelTaskButton.TabIndex = 5; @@ -102,14 +102,14 @@ private void InitializeComponent() { this.OutputTextBox.Name = "OutputTextBox"; this.OutputTextBox.ReadOnly = true; this.OutputTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.OutputTextBox.Size = new System.Drawing.Size(364, 195); + this.OutputTextBox.Size = new System.Drawing.Size(755, 433); this.OutputTextBox.TabIndex = 6; // // TaskOutputWindow // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(393, 323); + this.ClientSize = new System.Drawing.Size(784, 561); this.Controls.Add(this.OutputTextBox); this.Controls.Add(this.CancelTaskButton); this.Controls.Add(this.CloseWindowButton); @@ -119,6 +119,7 @@ private void InitializeComponent() { this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MinimumSize = new System.Drawing.Size(409, 362); this.Name = "TaskOutputWindow"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Task"; this.Load += new System.EventHandler(this.TaskOutputWindow_Load); this.ResumeLayout(false);