スタイル: コーディング規約に準拠したコードフォーマットの適用(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バインディング共通仮想プロパティ =================
|
||||
|
||||
Reference in new issue
Block a user