Added charge and deposit buttons

This commit is contained in:
Andre Beging
2017-09-12 09:09:00 +02:00
parent 09a09d4af4
commit 1abacdccbb
10 changed files with 109 additions and 21 deletions

View File

@@ -42,6 +42,28 @@ namespace DebtMgr.ViewModel.Dialogs
}
}
#endregion
#region WindowIcon (string) Property
/// <summary>
/// Privater Teil von <see cref="WindowIcon" />
/// </summary>
private string _windowIcon;
/// <summary>
/// Comment
///</summary>
public string WindowIcon
{
get { return _windowIcon; }
set
{
_windowIcon = value;
RaisePropertyChanged(() => WindowIcon);
}
}
#endregion
#region AmountTextBoxText (string) Property
@@ -269,11 +291,13 @@ namespace DebtMgr.ViewModel.Dialogs
if (DialogMode == TransactionType.Deposit)
{
WindowTitle = "Add Deposit";
WindowIcon = "../../Content/money_green.ico";
}
if (DialogMode == TransactionType.Charge)
{
WindowTitle = "Add Charge";
WindowIcon = "../../Content/money_red.ico";
}
PersonComboBoxSelectedItem =

View File

@@ -44,6 +44,29 @@ namespace DebtMgr.ViewModel.Dialogs
}
#endregion
#region WindowIcon (string) Property
/// <summary>
/// Privater Teil von <see cref="WindowIcon" />
/// </summary>
private string _windowIcon;
/// <summary>
/// Comment
///</summary>
public string WindowIcon
{
get { return _windowIcon; }
set
{
_windowIcon = value;
RaisePropertyChanged(() => WindowIcon);
}
}
#endregion
#region AmountTextBoxText (string) Property
/// <summary>
@@ -215,9 +238,15 @@ namespace DebtMgr.ViewModel.Dialogs
DatePickerSelectedDate = _transaction.Time;
if (_transaction.Type == TransactionType.Charge)
{
WindowTitle = "Edit Charge";
WindowIcon = "../../Content/money_red.ico";
}
else if (_transaction.Type == TransactionType.Deposit)
{
WindowTitle = "Edit Deposit";
WindowIcon = "../../Content/money_green.ico";
}
}
#endregion