スタイル: コーディング規約に準拠したコードフォーマットの適用(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
+38
-38
@@ -34,51 +34,51 @@ namespace GameLauncher.Models
|
||||
/// <summary>ゲームの表示タイトル</summary>
|
||||
public string Title
|
||||
{
|
||||
get => _title;
|
||||
set { if (_title != value) { _title = value; OnPropertyChanged(); } }
|
||||
get => this._title;
|
||||
set { if (this._title != value) { this._title = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>フォルダ名</summary>
|
||||
public string FolderName
|
||||
{
|
||||
get => _folderName;
|
||||
set { if (_folderName != value) { _folderName = value; OnPropertyChanged(); } }
|
||||
get => this._folderName;
|
||||
set { if (this._folderName != value) { this._folderName = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>ゲームのルートディレクトリ絶対パス</summary>
|
||||
public string RootDirectory
|
||||
{
|
||||
get => _rootDirectory;
|
||||
set { if (_rootDirectory != value) { _rootDirectory = value; OnPropertyChanged(); } }
|
||||
get => this._rootDirectory;
|
||||
set { if (this._rootDirectory != value) { this._rootDirectory = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>ゲームの実行ファイル(.exe等)絶対パス</summary>
|
||||
public string ExecutablePath
|
||||
{
|
||||
get => _executablePath;
|
||||
set { if (_executablePath != value) { _executablePath = value; OnPropertyChanged(); } }
|
||||
get => this._executablePath;
|
||||
set { if (this._executablePath != value) { this._executablePath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>アプリアイコン画像</summary>
|
||||
public ImageSource? IconImage
|
||||
{
|
||||
get => _iconImage;
|
||||
set { if (_iconImage != value) { _iconImage = value; OnPropertyChanged(); } }
|
||||
get => this._iconImage;
|
||||
set { if (this._iconImage != value) { this._iconImage = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>ランチャーからの最終起動日時</summary>
|
||||
public DateTime? LastLaunched
|
||||
{
|
||||
get => _lastLaunched;
|
||||
get => this._lastLaunched;
|
||||
set
|
||||
{
|
||||
if (_lastLaunched != value)
|
||||
if (this._lastLaunched != value)
|
||||
{
|
||||
_lastLaunched = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(LastLaunchedDisplay));
|
||||
OnPropertyChanged(nameof(LastLaunchedCardDisplay));
|
||||
OnPropertyChanged(nameof(LastLaunchedDetailDisplay));
|
||||
this._lastLaunched = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.LastLaunchedDisplay));
|
||||
this.OnPropertyChanged(nameof(this.LastLaunchedCardDisplay));
|
||||
this.OnPropertyChanged(nameof(this.LastLaunchedDetailDisplay));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,16 +86,16 @@ namespace GameLauncher.Models
|
||||
/// <summary>フォルダ更新日時</summary>
|
||||
public DateTime? FolderLastModified
|
||||
{
|
||||
get => _folderLastModified;
|
||||
get => this._folderLastModified;
|
||||
set
|
||||
{
|
||||
if (_folderLastModified != value)
|
||||
if (this._folderLastModified != value)
|
||||
{
|
||||
_folderLastModified = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(FolderLastModifiedDisplay));
|
||||
OnPropertyChanged(nameof(FolderLastModifiedCardDisplay));
|
||||
OnPropertyChanged(nameof(FolderLastModifiedDetailDisplay));
|
||||
this._folderLastModified = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.FolderLastModifiedDisplay));
|
||||
this.OnPropertyChanged(nameof(this.FolderLastModifiedCardDisplay));
|
||||
this.OnPropertyChanged(nameof(this.FolderLastModifiedDetailDisplay));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -128,8 +128,8 @@ namespace GameLauncher.Models
|
||||
/// <summary>ゲームエンジンの種別</summary>
|
||||
public abstract GameEngineKind EngineKind { get; }
|
||||
|
||||
public bool IsTkoolOrTyrano => EngineKind is GameEngineKind.Tkool or GameEngineKind.Tyrano;
|
||||
public bool IsUnity => EngineKind == GameEngineKind.Unity;
|
||||
public bool IsTkoolOrTyrano => this.EngineKind is GameEngineKind.Tkool or GameEngineKind.Tyrano;
|
||||
public bool IsUnity => this.EngineKind == GameEngineKind.Unity;
|
||||
|
||||
/// <summary>Enigma Virtual Box でパックされたゲームか</summary>
|
||||
public virtual bool IsEvb => false;
|
||||
@@ -169,28 +169,28 @@ namespace GameLauncher.Models
|
||||
/// <summary>EVB 詳細状態テキスト</summary>
|
||||
public virtual string EvbDetailStatusText => string.Empty;
|
||||
|
||||
public string LastLaunchedDisplay => LastLaunched.HasValue
|
||||
? LastLaunched.Value.ToString("yyyy/MM/dd HH:mm")
|
||||
public string LastLaunchedDisplay => this.LastLaunched.HasValue
|
||||
? this.LastLaunched.Value.ToString("yyyy/MM/dd HH:mm")
|
||||
: "未起動";
|
||||
|
||||
public string LastLaunchedCardDisplay => LastLaunched.HasValue
|
||||
? $"▶ {LastLaunched.Value:yy/MM/dd HH:mm}"
|
||||
public string LastLaunchedCardDisplay => this.LastLaunched.HasValue
|
||||
? $"▶ {this.LastLaunched.Value:yy/MM/dd HH:mm}"
|
||||
: "▶ 未起動";
|
||||
|
||||
public string LastLaunchedDetailDisplay => LastLaunched.HasValue
|
||||
? LastLaunched.Value.ToString("yyyy/MM/dd HH:mm:ss")
|
||||
public string LastLaunchedDetailDisplay => this.LastLaunched.HasValue
|
||||
? this.LastLaunched.Value.ToString("yyyy/MM/dd HH:mm:ss")
|
||||
: "まだ起動されていません";
|
||||
|
||||
public string FolderLastModifiedDisplay => FolderLastModified.HasValue
|
||||
? FolderLastModified.Value.ToString("yyyy/MM/dd HH:mm")
|
||||
public string FolderLastModifiedDisplay => this.FolderLastModified.HasValue
|
||||
? this.FolderLastModified.Value.ToString("yyyy/MM/dd HH:mm")
|
||||
: "-";
|
||||
|
||||
public string FolderLastModifiedCardDisplay => FolderLastModified.HasValue
|
||||
? $"📁 {FolderLastModified.Value:yy/MM/dd HH:mm}"
|
||||
public string FolderLastModifiedCardDisplay => this.FolderLastModified.HasValue
|
||||
? $"📁 {this.FolderLastModified.Value:yy/MM/dd HH:mm}"
|
||||
: "📁 -";
|
||||
|
||||
public string FolderLastModifiedDetailDisplay => FolderLastModified.HasValue
|
||||
? FolderLastModified.Value.ToString("yyyy/MM/dd HH:mm:ss")
|
||||
public string FolderLastModifiedDetailDisplay => this.FolderLastModified.HasValue
|
||||
? this.FolderLastModified.Value.ToString("yyyy/MM/dd HH:mm:ss")
|
||||
: "不明";
|
||||
|
||||
// ================= バッジ・UIバインディング共通仮想プロパティ =================
|
||||
|
||||
@@ -114,13 +114,13 @@ namespace GameLauncher.Models
|
||||
|
||||
public bool IsEnabled
|
||||
{
|
||||
get => _isEnabled;
|
||||
get => this._isEnabled;
|
||||
set
|
||||
{
|
||||
if (_isEnabled != value)
|
||||
if (this._isEnabled != value)
|
||||
{
|
||||
_isEnabled = value;
|
||||
OnPropertyChanged();
|
||||
this._isEnabled = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,36 +26,36 @@ namespace GameLauncher.Models
|
||||
/// <summary>項目名(キー名、変数名)</summary>
|
||||
public string Key
|
||||
{
|
||||
get => _key;
|
||||
set { if (_key != value) { _key = value; OnPropertyChanged(); } }
|
||||
get => this._key;
|
||||
set { if (this._key != value) { this._key = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>分類・カテゴリ(セクション、オブジェクト名など)</summary>
|
||||
public string Category
|
||||
{
|
||||
get => _category;
|
||||
set { if (_category != value) { _category = value; OnPropertyChanged(); } }
|
||||
get => this._category;
|
||||
set { if (this._category != value) { this._category = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>データ型(Int, Float, Bool, String など)</summary>
|
||||
public string Type
|
||||
{
|
||||
get => _type;
|
||||
set { if (_type != value) { _type = value; OnPropertyChanged(); } }
|
||||
get => this._type;
|
||||
set { if (this._type != value) { this._type = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>GUI編集用の値文字列</summary>
|
||||
public string EditValue
|
||||
{
|
||||
get => _editValue;
|
||||
get => this._editValue;
|
||||
set
|
||||
{
|
||||
if (_editValue != value)
|
||||
if (this._editValue != value)
|
||||
{
|
||||
_editValue = value;
|
||||
_isModified = true;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(IsModified));
|
||||
this._editValue = value;
|
||||
this._isModified = true;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.IsModified));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,15 +63,15 @@ namespace GameLauncher.Models
|
||||
/// <summary>値がユーザーによって変更されたかどうか</summary>
|
||||
public bool IsModified
|
||||
{
|
||||
get => _isModified;
|
||||
set { if (_isModified != value) { _isModified = value; OnPropertyChanged(); } }
|
||||
get => this._isModified;
|
||||
set { if (this._isModified != value) { this._isModified = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>備考・説明・オフセット位置など</summary>
|
||||
public string Description
|
||||
{
|
||||
get => _description;
|
||||
set { if (_description != value) { _description = value; OnPropertyChanged(); } }
|
||||
get => this._description;
|
||||
set { if (this._description != value) { this._description = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>内部保持用の生データや元データ(再エンコード用)</summary>
|
||||
|
||||
Reference in new issue
Block a user