スタイル: コーディング規約に準拠したコードフォーマットの適用(this.の明示、空白スタイルの統一)

- 自インスタンスメンバーアクセスへの this. 付与(28ファイル)
- .editorconfig に準拠したインデント・波括弧・空白スタイルの適用
- UTF-8 (BOMあり)、CRLF改行コード、行末空白除去の整合性検証
This commit is contained in:
armonica committed 2026-10-20 10:14:26 +09:00
1 parent 2fa40c950f
commit ae86b53147
28 files changed
+1362 -1380

No files matched your search

+22 -22
View File
@@ -19,14 +19,14 @@ namespace GameLauncher
public ConfigDialog(LauncherConfig config)
{
InitializeComponent();
_config = config;
this.InitializeComponent();
this._config = config;
txtRgssExtractorPath.Text = _config.RgssExtractorPath ?? @"C:\Soft\RGSS-Extractor-v1.0\RGSS Extractor.exe";
txtWolfExtractorPath.Text = _config.WolfExtractorPath ?? string.Empty;
txtWindowResizeToolPath.Text = _config.WindowResizeToolPath ?? string.Empty;
txtBackupsPath.Text = AppPathHelper.GetBackupsDirectory();
chkDefaultApplyMod.IsChecked = _config.DefaultApplyMod;
this.txtRgssExtractorPath.Text = this._config.RgssExtractorPath ?? @"C:\Soft\RGSS-Extractor-v1.0\RGSS Extractor.exe";
this.txtWolfExtractorPath.Text = this._config.WolfExtractorPath ?? string.Empty;
this.txtWindowResizeToolPath.Text = this._config.WindowResizeToolPath ?? string.Empty;
this.txtBackupsPath.Text = AppPathHelper.GetBackupsDirectory();
this.chkDefaultApplyMod.IsChecked = this._config.DefaultApplyMod;
}
private void btnBrowseExtractor_Click(object sender, RoutedEventArgs e)
@@ -38,7 +38,7 @@ namespace GameLauncher
FileName = "RGSS Extractor.exe"
};
var currentDir = Path.GetDirectoryName(txtRgssExtractorPath.Text);
var currentDir = Path.GetDirectoryName(this.txtRgssExtractorPath.Text);
if (!string.IsNullOrEmpty(currentDir) && Directory.Exists(currentDir))
{
ofd.InitialDirectory = currentDir;
@@ -46,7 +46,7 @@ namespace GameLauncher
if (ofd.ShowDialog() == true)
{
txtRgssExtractorPath.Text = ofd.FileName;
this.txtRgssExtractorPath.Text = ofd.FileName;
}
}
@@ -59,7 +59,7 @@ namespace GameLauncher
FileName = "UberWolfCli.exe"
};
var currentDir = Path.GetDirectoryName(txtWolfExtractorPath.Text);
var currentDir = Path.GetDirectoryName(this.txtWolfExtractorPath.Text);
if (!string.IsNullOrEmpty(currentDir) && Directory.Exists(currentDir))
{
ofd.InitialDirectory = currentDir;
@@ -67,7 +67,7 @@ namespace GameLauncher
if (ofd.ShowDialog() == true)
{
txtWolfExtractorPath.Text = ofd.FileName;
this.txtWolfExtractorPath.Text = ofd.FileName;
}
}
@@ -80,7 +80,7 @@ namespace GameLauncher
FileName = "Sizer.exe"
};
var currentDir = Path.GetDirectoryName(txtWindowResizeToolPath.Text);
var currentDir = Path.GetDirectoryName(this.txtWindowResizeToolPath.Text);
if (!string.IsNullOrEmpty(currentDir) && Directory.Exists(currentDir))
{
ofd.InitialDirectory = currentDir;
@@ -88,7 +88,7 @@ namespace GameLauncher
if (ofd.ShowDialog() == true)
{
txtWindowResizeToolPath.Text = ofd.FileName;
this.txtWindowResizeToolPath.Text = ofd.FileName;
}
}
@@ -111,19 +111,19 @@ namespace GameLauncher
private void btnSave_Click(object sender, RoutedEventArgs e)
{
_config.RgssExtractorPath = txtRgssExtractorPath.Text.Trim();
_config.WolfExtractorPath = txtWolfExtractorPath.Text.Trim();
_config.WindowResizeToolPath = txtWindowResizeToolPath.Text.Trim();
_config.DefaultApplyMod = chkDefaultApplyMod.IsChecked == true;
IsSaved = true;
DialogResult = true;
Close();
this._config.RgssExtractorPath = this.txtRgssExtractorPath.Text.Trim();
this._config.WolfExtractorPath = this.txtWolfExtractorPath.Text.Trim();
this._config.WindowResizeToolPath = this.txtWindowResizeToolPath.Text.Trim();
this._config.DefaultApplyMod = this.chkDefaultApplyMod.IsChecked == true;
this.IsSaved = true;
this.DialogResult = true;
this.Close();
}
private void btnCancel_Click(object sender, RoutedEventArgs e)
{
DialogResult = false;
Close();
this.DialogResult = false;
this.Close();
}
}
}