Skip to content

Commit

Permalink
Working Stable Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nischay-Pro committed Apr 6, 2017
1 parent 198a260 commit e1d8188
Show file tree
Hide file tree
Showing 22 changed files with 16 additions and 10 deletions.
Binary file modified .vs/BatteryMonitor/v15/.suo
Binary file not shown.
1 change: 0 additions & 1 deletion BatteryMonitor/BatteryMonitor.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="power-settings %282%29.ico" />
<Content Include="power-settings %283%29.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
Expand Down
2 changes: 1 addition & 1 deletion BatteryMonitor/Form1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion BatteryMonitor/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Imports BatteryMonitor.IniFile
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim argsma As String() = Environment.GetCommandLineArgs
For Each Item As String In argsma
If Item = "-tray" Then
Me.Hide()
Me.ShowInTaskbar = False
End If
Next
LoadSettings()
End Sub

Expand Down Expand Up @@ -69,7 +76,7 @@ Public Class Form1
Dim writecommand As StreamWriter = processman.StandardInput
Dim appname As String = Application.ProductName
Dim apploc As String = Application.ExecutablePath
writecommand.WriteLine("reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" & " /V """ & appname & """" & " /t REG_SZ /F /D """ & apploc & """")
writecommand.WriteLine("reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" & " /V """ & appname & """" & " /t REG_SZ /F /D """ & apploc & "-tray""")
writecommand.Close()
Return True
Catch ex As Exception
Expand Down
10 changes: 5 additions & 5 deletions BatteryMonitor/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Imports System.Runtime.InteropServices

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("BatteryMonitor")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyTitle("Battery Monitor")>
<Assembly: AssemblyDescription("A tool to monitor your battery usage")>
<Assembly: AssemblyCompany("Battery Monitor")>
<Assembly: AssemblyProduct("BatteryMonitor")>
<Assembly: AssemblyCopyright("Copyright © 2017")>
<Assembly: AssemblyTrademark("")>
Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.06.49")>
<Assembly: AssemblyFileVersion("1.0.06.49")>
<Assembly: AssemblyVersion("1.0.06.62")>
<Assembly: AssemblyFileVersion("1.0.06.62")>
Binary file modified BatteryMonitor/bin/Debug/BatteryMonitor.exe
Binary file not shown.
Binary file modified BatteryMonitor/bin/Debug/BatteryMonitor.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion BatteryMonitor/bin/Debug/settings.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[General]
Max=80
Startup=False
Startup=True
Min=25
Overcharge=True
Threshold=True
Binary file modified BatteryMonitor/bin/Release/BatteryMonitor.exe
Binary file not shown.
Binary file modified BatteryMonitor/bin/Release/BatteryMonitor.pdb
Binary file not shown.
Binary file added BatteryMonitor/bin/Release/BatteryMonitor.zip
Binary file not shown.
Binary file modified BatteryMonitor/obj/Debug/BatteryMonitor.exe
Binary file not shown.
Binary file modified BatteryMonitor/obj/Debug/BatteryMonitor.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified BatteryMonitor/obj/Release/BatteryMonitor.Form1.resources
Binary file not shown.
Binary file modified BatteryMonitor/obj/Release/BatteryMonitor.exe
Binary file not shown.
Binary file modified BatteryMonitor/obj/Release/BatteryMonitor.pdb
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion BatteryMonitor/obj/Release/CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7a1a3c6e06f88de5bbde1c489e65d680de247f33
cf90b1a0eff9428a045f276c0ce419c915dab5d7
Binary file not shown.
Binary file removed BatteryMonitor/power-settings (2).ico
Binary file not shown.

0 comments on commit e1d8188

Please sign in to comment.