@@ -38,7 +38,7 @@ public partial class MainWindow : Form
38
38
private uint NtActualResolution = 0 ;
39
39
40
40
private readonly static bool emptyBuildVersion = Assembly . GetEntryAssembly ( ) . GetName ( ) . Version . Build == - 1 ;
41
- private readonly string ProgramVersion = emptyBuildVersion ? Assembly . GetEntryAssembly ( ) . GetName ( ) . Version . Build . ToString ( ) : "1.0.3.7 " ;
41
+ private readonly string ProgramVersion = emptyBuildVersion ? Assembly . GetEntryAssembly ( ) . GetName ( ) . Version . Build . ToString ( ) : "1.0.3.8 " ;
42
42
43
43
private static Dictionary < string , int > Logger = new ( ) ;
44
44
@@ -107,7 +107,7 @@ public MainWindow()
107
107
if ( bool . TryParse ( ConfigurationManager . AppSettings [ "StartPurgingAutomatically" ] , out purgeAutomatically ) )
108
108
automaticCacheCleanBox . Checked = purgeAutomatically ;
109
109
110
- float . TryParse ( ConfigurationManager . AppSettings [ "DesiredResjolution" ] , NumberStyles . AllowDecimalPoint , CultureInfo . InvariantCulture , out desiredResolution ) ;
110
+ float . TryParse ( ConfigurationManager . AppSettings [ "DesiredResjolution" ] , out desiredResolution ) ;
111
111
112
112
if ( desiredResolution == 0 )
113
113
desiredResolution = 0.50f ;
@@ -166,7 +166,7 @@ private void timerResolutionBox_TextChanged(object sender, EventArgs e)
166
166
{
167
167
if ( timerResolutionBox . Text != string . Empty && timerResolutionBox . Text . Last ( ) != '.' )
168
168
{
169
- warningLabel . Visible = ( double . Parse ( timerResolutionBox . Text , NumberStyles . AllowDecimalPoint , CultureInfo . InvariantCulture ) > 15.6250d ) ? true : false ;
169
+ warningLabel . Visible = ( double . Parse ( timerResolutionBox . Text ) > 15.6250d ) ? true : false ;
170
170
}
171
171
}
172
172
@@ -197,7 +197,7 @@ private void startButton_Click(object sender, EventArgs e)
197
197
if ( timerResolutionBox . Text == string . Empty )
198
198
return ;
199
199
200
- var result = NtSetTimerResolution ( ( int ) ( float . Parse ( timerResolutionBox . Text , NumberStyles . AllowDecimalPoint , CultureInfo . InvariantCulture ) * 10000f ) , true , out NtCurrentResolution ) ;
200
+ var result = NtSetTimerResolution ( ( int ) ( float . Parse ( timerResolutionBox . Text ) * 10000f ) , true , out NtCurrentResolution ) ;
201
201
202
202
if ( result != NtStatus . Success )
203
203
{
@@ -217,7 +217,7 @@ private void stopButton_Click(object sender, EventArgs e)
217
217
if ( timerResolutionBox . Text == string . Empty )
218
218
return ;
219
219
220
- var result = NtSetTimerResolution ( ( int ) ( float . Parse ( timerResolutionBox . Text , NumberStyles . AllowDecimalPoint , CultureInfo . InvariantCulture ) * 10000f ) , false , out NtCurrentResolution ) ;
220
+ var result = NtSetTimerResolution ( ( int ) ( float . Parse ( timerResolutionBox . Text ) * 10000f ) , false , out NtCurrentResolution ) ;
221
221
222
222
if ( result != NtStatus . Success )
223
223
{
@@ -309,7 +309,7 @@ private void MainWindow_Load(object sender, EventArgs e)
309
309
{
310
310
if ( Program . startMinimized )
311
311
{
312
- var result = NtSetTimerResolution ( ( int ) ( float . Parse ( timerResolutionBox . Text , NumberStyles . AllowDecimalPoint , CultureInfo . InvariantCulture ) * 10000f ) , true , out NtCurrentResolution ) ;
312
+ var result = NtSetTimerResolution ( ( int ) ( float . Parse ( timerResolutionBox . Text ) * 10000f ) , true , out NtCurrentResolution ) ;
313
313
314
314
if ( result != NtStatus . Success )
315
315
MessageBox . Show ( $ "Error code: { result } ", "OpenTimerResolution" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
0 commit comments