Skip to content

Commit

Permalink
Switched from CurrentUICulture to CurrentCulture.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Nov 14, 2024
1 parent 9b566a4 commit 7a7a1bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/kbhelper/FrmKBHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void UninstallKBS()
/// <param name="e">Event arguments.</param>
private void Dis_LWIN_Click(object sender, EventArgs e)
{
InstallKBS(RegLWinValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentUICulture));
InstallKBS(RegLWinValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentCulture));
}

/// <summary>
Expand All @@ -147,7 +147,7 @@ private void Dis_LWIN_Click(object sender, EventArgs e)
/// <param name="e">Event arguments.</param>
private void Dis_BWIN_Click(object sender, EventArgs e)
{
InstallKBS(RegBothWinValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentUICulture));
InstallKBS(RegBothWinValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentCulture));
}

/// <summary>
Expand All @@ -157,7 +157,7 @@ private void Dis_BWIN_Click(object sender, EventArgs e)
/// <param name="e">Event arguments.</param>
private void Dis_RWinMnu_Click(object sender, EventArgs e)
{
InstallKBS(RegRWinMenuValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentUICulture));
InstallKBS(RegRWinMenuValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentCulture));
}

/// <summary>
Expand All @@ -167,7 +167,7 @@ private void Dis_RWinMnu_Click(object sender, EventArgs e)
/// <param name="e">Event arguments.</param>
private void Dis_BWinMnu_Click(object sender, EventArgs e)
{
InstallKBS(RegBothWinMenuValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentUICulture));
InstallKBS(RegBothWinMenuValue, ((Button)sender).Text.ToLower(CultureInfo.CurrentCulture));
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/srcrepair/FrmCleaner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void DetectFilesForCleanup(List<string> Targets, bool Recursive)
SubItems =
{
GuiHelpers.SclBytes(DItem.Length),
DItem.LastWriteTime.ToString(CultureInfo.CurrentUICulture)
DItem.LastWriteTime.ToString(CultureInfo.CurrentCulture)
}
};

Expand Down
12 changes: 6 additions & 6 deletions src/srcrepair/FrmMainW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ private void AddBackUpsToTable(FileInfo[] DItems)
{
Rs.Item1,
GuiHelpers.SclBytes(DItem.Length),
DItem.CreationTime.ToString(CultureInfo.CurrentUICulture),
DItem.CreationTime.ToString(CultureInfo.CurrentCulture),
DItem.Name
}
};
Expand Down Expand Up @@ -1406,7 +1406,7 @@ private void StartCleanup(int ID, string Title, List<string> Targets)
{
CleanDirs.AddRange(Targets);
}
GuiHelpers.FormShowCleanup(CleanDirs, Title.ToLower(CultureInfo.CurrentUICulture), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile);
GuiHelpers.FormShowCleanup(CleanDirs, Title.ToLower(CultureInfo.CurrentCulture), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile);
}
catch (Exception Ex)
{
Expand Down Expand Up @@ -2350,7 +2350,7 @@ private void FP_Uninstall_Click(object sender, EventArgs e)
else
{
// Showing interactive dialog with detected FPS-configs...
GuiHelpers.FormShowCleanup(App.SourceGames[AppSelector.Text].FPSConfigs, ((Button)sender).Text.ToLower(CultureInfo.CurrentUICulture), AppStrings.FP_RemoveSuccessful, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile, false, false, false, Properties.Settings.Default.SafeCleanup);
GuiHelpers.FormShowCleanup(App.SourceGames[AppSelector.Text].FPSConfigs, ((Button)sender).Text.ToLower(CultureInfo.CurrentCulture), AppStrings.FP_RemoveSuccessful, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile, false, false, false, Properties.Settings.Default.SafeCleanup);
}

// Changing the state of some controls...
Expand Down Expand Up @@ -3307,7 +3307,7 @@ private void PS_DeepCleanup_Click(object sender, EventArgs e)
/// <param name="e">Event arguments.</param>
private void PS_RemConfigs_Click(object sender, EventArgs e)
{
GuiHelpers.FormShowCleanup(App.SourceGames[AppSelector.Text].FPSConfigs, ((Button)sender).Text.ToLower(CultureInfo.CurrentUICulture), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile, false, false, false, Properties.Settings.Default.SafeCleanup);
GuiHelpers.FormShowCleanup(App.SourceGames[AppSelector.Text].FPSConfigs, ((Button)sender).Text.ToLower(CultureInfo.CurrentCulture), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile, false, false, false, Properties.Settings.Default.SafeCleanup);
}

/// <summary>
Expand Down Expand Up @@ -3445,7 +3445,7 @@ private void MNUExtClnAppCache_Click(object sender, EventArgs e)
Path.Combine(App.AppHUDDir, "*.*"),
Path.Combine(App.AppUpdateDir, "*.*")
};
GuiHelpers.FormShowCleanup(CleanDirs, ((ToolStripMenuItem)sender).Text.ToLower(CultureInfo.CurrentUICulture).Replace("&", string.Empty), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile);
GuiHelpers.FormShowCleanup(CleanDirs, ((ToolStripMenuItem)sender).Text.ToLower(CultureInfo.CurrentCulture).Replace("&", string.Empty), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile);
}

/// <summary>
Expand All @@ -3459,7 +3459,7 @@ private void MNUExtClnTmpDir_Click(object sender, EventArgs e)
{
Path.Combine(Path.GetTempPath(), "*.*")
};
GuiHelpers.FormShowCleanup(CleanDirs, ((ToolStripMenuItem)sender).Text.ToLower(CultureInfo.CurrentUICulture).Replace("&", string.Empty), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile);
GuiHelpers.FormShowCleanup(CleanDirs, ((ToolStripMenuItem)sender).Text.ToLower(CultureInfo.CurrentCulture).Replace("&", string.Empty), AppStrings.PS_CleanupSuccess, App.SourceGames[AppSelector.Text].FullBackUpDirPath, App.SourceGames[AppSelector.Text].GameBinaryFile);
}

/// <summary>
Expand Down

0 comments on commit 7a7a1bc

Please sign in to comment.