Rename Model to TransactionDetails
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
@@ -24,7 +24,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public TransactionViewModel(TransactionDetailsViewModel model)
{
- Model = model;
+ TransactionDetails = model;
ClipboardNotificationVisible = false;
ClipboardNotificationOpacity = 0;
@@ -38,7 +38,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
if (transactionInfo is null)
{
- transactionInfo = new TransactionInfoTabViewModel(Model);
+ transactionInfo = new TransactionInfoTabViewModel(TransactionDetails);
shell.AddDocument(transactionInfo);
}
@@ -56,27 +56,27 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
});
}
- private TransactionDetailsViewModel Model { get; }
+ private TransactionDetailsViewModel TransactionDetails { get; }
public ReactiveCommand<Unit, Unit> CopyTransactionId { get; }
public ReactiveCommand<Unit, Unit> OpenTransactionInfo { get; }
- public string DateTime => Model.DateTime.ToString("yyyy-MM-dd HH:mm", CultureInfo.InvariantCulture);
+ public string DateTime => TransactionDetails.DateTime.ToString("yyyy-MM-dd HH:mm", CultureInfo.InvariantCulture);
- public bool Confirmed => Model.Confirmed;
+ public bool Confirmed => TransactionDetails.Confirmed;
- public int Confirmations => Model.Confirmations;
+ public int Confirmations => TransactionDetails.Confirmations;
- public string AmountBtc => Model.AmountBtc;
+ public string AmountBtc => TransactionDetails.AmountBtc;
- public Money Amount => Money.TryParse(Model.AmountBtc, out Money money) ? money : Money.Zero;
+ public Money Amount => Money.TryParse(TransactionDetails.AmountBtc, out Money money) ? money : Money.Zero;
- public string Label => Model.Label;
+ public string Label => TransactionDetails.Label;
- public int BlockHeight => Model.BlockHeight;
+ public int BlockHeight => TransactionDetails.BlockHeight;
- public string TransactionId => Model.TransactionId;
+ public string TransactionId => TransactionDetails.TransactionId;
public bool ClipboardNotificationVisible
{

Rename Model to TransactionDetails