Skip to content

Commit a3c299d

Browse files
committed
V 1.5.1 - Performance Improvements
1 parent cd1ebbf commit a3c299d

File tree

5 files changed

+49
-44
lines changed

5 files changed

+49
-44
lines changed

ViVeTool-GUI.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Global
1717
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1818
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1919
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|x64.ActiveCfg = Debug|Any CPU
21-
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|x64.Build.0 = Debug|Any CPU
20+
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|x64.ActiveCfg = Debug|x64
21+
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|x64.Build.0 = Debug|x64
2222
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|x86.ActiveCfg = Debug|x86
2323
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Debug|x86.Build.0 = Debug|x86
2424
{7E667325-4E6F-49E0-A7A8-52E4B95FBB4A}.Release|Any CPU.ActiveCfg = Release|Any CPU

vivetool-gui/GUI.Designer.vb

Lines changed: 23 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vivetool-gui/GUI.vb

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'
1414
'You should have received a copy of the GNU General Public License
1515
'along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
Imports AutoUpdaterDotNET, Newtonsoft.Json.Linq, Telerik.WinControls.Data, Albacore.ViVe, System.Runtime.InteropServices, Telerik.WinControls.UI
16+
Imports AutoUpdaterDotNET, Newtonsoft.Json.Linq, Albacore.ViVe, System.Runtime.InteropServices, Telerik.WinControls.UI
1717

1818
''' <summary>
1919
''' ViVeTool GUI
@@ -25,7 +25,7 @@ Public Class GUI
2525
Private Const WM_SYSCOMMAND As Integer = &H112
2626
Private Const MF_STRING As Integer = &H0
2727
Private Const MF_SEPARATOR As Integer = &H800
28-
Dim TempJSONUsedInDevelopment As String = "{
28+
ReadOnly TempJSONUsedInDevelopment As String = "{
2929
""sha"": ""afeb63367f1bd15d63cfe30541a9a6ee51b940dd"",
3030
""url"": ""https://api.github.com/repos/riverar/mach2/git/trees/afeb63367f1bd15d63cfe30541a9a6ee51b940dd"",
3131
""tree"": [
@@ -101,14 +101,29 @@ Public Class GUI
101101
''' <param name="sender">Default sender Object</param>
102102
''' <param name="e">Default EventArgs</param>
103103
Private Sub GUI_Load(sender As Object, e As EventArgs) Handles MyBase.Load
104+
'Make a Background Thread that handles Background Tasks
105+
Dim BackgroundThread As New Threading.Thread(AddressOf BackgroundTasks) With {
106+
.IsBackground = True
107+
}
108+
BackgroundThread.SetApartmentState(Threading.ApartmentState.STA)
109+
BackgroundThread.Start()
110+
111+
'Disable the close button in the search row
112+
RGV_MainGridView.MasterView.TableSearchRow.ShowCloseButton = False
113+
End Sub
114+
115+
''' <summary>
116+
''' Background Tasks to be executed in a Thread
117+
''' </summary>
118+
Private Sub BackgroundTasks()
104119
'Check for Updates
105120
AutoUpdater.Start("https://raw.githubusercontent.com/PeterStrick/ViVeTool-GUI/master/UpdaterXML.xml")
106121

107122
'Populate the Build Combo Box
108123
PopulateBuildComboBox()
109124

110-
'Disable the close button in the search row
111-
RGV_MainGridView.MasterView.TableSearchRow.ShowCloseButton = False
125+
'Set Ready Label
126+
Invoke(Sub() RLE_StatusLabel.Text = "Ready. Select a build from the Combo Box to get started, or alternatively press F12 to manually change a Feature.")
112127
End Sub
113128

114129
''' <summary>
@@ -367,7 +382,7 @@ Public Class GUI
367382
IO.File.Delete(path)
368383

369384
'Enable Grouping
370-
Dim LineGroup As New GroupDescriptor()
385+
Dim LineGroup As New Telerik.WinControls.Data.GroupDescriptor()
371386
LineGroup.GroupNames.Add("FeatureInfo", System.ComponentModel.ListSortDirection.Ascending)
372387
Invoke(Sub() Me.RGV_MainGridView.GroupDescriptors.Add(LineGroup))
373388
Else

vivetool-gui/My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
3131
' by using the '*' as shown below:
3232
' <Assembly: AssemblyVersion("1.0.*")>
3333

34-
<Assembly: AssemblyVersion("1.5.0.0")>
35-
<Assembly: AssemblyFileVersion("1.5.0.0")>
34+
<Assembly: AssemblyVersion("1.5.1.0")>
35+
<Assembly: AssemblyFileVersion("1.5.1.0")>

vivetool-gui/ViVeTool-GUI.vbproj

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
5555
<PlatformTarget>AnyCPU</PlatformTarget>
5656
<OutputPath>bin\Debug\</OutputPath>
57+
<Prefer32Bit>false</Prefer32Bit>
58+
<Optimize>true</Optimize>
5759
</PropertyGroup>
5860
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
5961
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -80,16 +82,9 @@
8082
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
8183
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
8284
</Reference>
83-
<Reference Include="PresentationFramework" />
8485
<Reference Include="System" />
85-
<Reference Include="System.Configuration" />
86-
<Reference Include="System.Data" />
8786
<Reference Include="System.Drawing" />
88-
<Reference Include="System.Runtime.Serialization" />
89-
<Reference Include="System.Web.Extensions" />
9087
<Reference Include="System.Windows.Forms" />
91-
<Reference Include="System.Xaml" />
92-
<Reference Include="System.Xml" />
9388
<Reference Include="Telerik.WinControls, Version=2021.3.1109.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
9489
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2021\Bin40\Telerik.WinControls.dll</HintPath>
9590
<Private>True</Private>
@@ -108,15 +103,11 @@
108103
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2021\Bin40\TelerikCommon.dll</HintPath>
109104
<Private>True</Private>
110105
</Reference>
111-
<Reference Include="WindowsBase" />
112106
</ItemGroup>
113107
<ItemGroup>
114108
<Import Include="Microsoft.VisualBasic" />
115109
<Import Include="System" />
116-
<Import Include="System.Collections" />
117110
<Import Include="System.Collections.Generic" />
118-
<Import Include="System.Drawing" />
119-
<Import Include="System.Linq" />
120111
<Import Include="System.Net" />
121112
<Import Include="System.Windows.Forms" />
122113
</ItemGroup>

0 commit comments

Comments
 (0)