Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
Further MSI adjustments, added application icon.
  • Loading branch information
snem1216 committed Mar 2, 2020
1 parent 9dc82b6 commit 2259bab
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 73 deletions.
12 changes: 9 additions & 3 deletions SysInfo/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using SysInfo_Lib;
using System.Threading.Tasks;
using System.Threading;
using System.Diagnostics;

namespace SysInfo
{
Expand All @@ -32,6 +33,12 @@ public partial class MainWindow : Window
//Dictionary<string, string> config
public MainWindow()
{
// Do not run multiple instances
if(System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length != 1)
{
this.Close();
}

InitializeComponent();
//ScreenWrite(Environment.WorkingSet.ToString());
if(config["RefreshInterval"] != "0")
Expand All @@ -46,10 +53,9 @@ public MainWindow()
refreshRate = int.Parse(CONFIG_LOADER.GetDefaultConfig()["RefreshInterval"]);
}
refreshRate *= 1000;
var task3 = new Task(() => IncRefresh(refreshRate),
var Refresh = new Task(() => IncRefresh(refreshRate),
TaskCreationOptions.LongRunning);
task3.Start();
Console.WriteLine("RR: " + refreshRate.ToString());
Refresh.Start();
}
WriteScreen(tb);
ConfigAppearance();
Expand Down
4 changes: 2 additions & 2 deletions SysInfo/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,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.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
6 changes: 6 additions & 0 deletions SysInfo/SysInfo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>SysInfo.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -128,5 +131,8 @@
<Name>SysInfo_Lib</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="SysInfo.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file added SysInfo/SysInfo.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions SysInfo_Lib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
Binary file removed SysInfo_Setup/MSI-Banner.png
Binary file not shown.
Loading

0 comments on commit 2259bab

Please sign in to comment.