スタイル: コーディング規約に準拠したコードフォーマットの適用(this.の明示、空白スタイルの統一)
- 自インスタンスメンバーアクセスへの this. 付与(28ファイル) - .editorconfig に準拠したインデント・波括弧・空白スタイルの適用 - UTF-8 (BOMあり)、CRLF改行コード、行末空白除去の整合性検証
This commit is contained in:
1 parent
2fa40c950f
commit
ae86b53147
28 files changed
+1362
-1380
No files matched your search
+11
-11
@@ -16,37 +16,37 @@ namespace GameLauncher
|
||||
|
||||
public AddKeyDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
txtKeyName.Focus();
|
||||
this.InitializeComponent();
|
||||
this.txtKeyName.Focus();
|
||||
}
|
||||
|
||||
private void btnOk_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var keyName = txtKeyName.Text.Trim();
|
||||
var keyName = this.txtKeyName.Text.Trim();
|
||||
if (string.IsNullOrWhiteSpace(keyName))
|
||||
{
|
||||
MessageBox.Show("キー名を入力してください。", "入力エラー", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
KeyName = keyName;
|
||||
var selectedTag = (cmbKeyType.SelectedItem as ComboBoxItem)?.Tag?.ToString();
|
||||
KeyType = selectedTag switch
|
||||
this.KeyName = keyName;
|
||||
var selectedTag = (this.cmbKeyType.SelectedItem as ComboBoxItem)?.Tag?.ToString();
|
||||
this.KeyType = selectedTag switch
|
||||
{
|
||||
"Float" => PlayerPrefsType.Float,
|
||||
"String" => PlayerPrefsType.String,
|
||||
_ => PlayerPrefsType.Int
|
||||
};
|
||||
KeyValue = txtKeyValue.Text;
|
||||
this.KeyValue = this.txtKeyValue.Text;
|
||||
|
||||
DialogResult = true;
|
||||
Close();
|
||||
this.DialogResult = true;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DialogResult = false;
|
||||
Close();
|
||||
this.DialogResult = false;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user