public ExpenseViewModel(Expense entry) : this() { Entry = entry; Contractor = entry.Contractor; if (!entry.EconomicEvent.IsInDictionary) EconomicEventDescription = entry.EconomicEvent.Description; if (!entry.Comment.IsInDictionary) CommentText = entry.Comment.Text; ButtonContent = "Edytuj"; Title = $"Edycja wpisu {entry.EvidenceNumber}"; ButtonCommand = new RelayCommand(EditEntry); }
public ContractorViewModel() { ButtonContent = "Dodaj"; ButtonCommand = new RelayCommand(AddContractor); }
public ContractorViewModel(Contractor contractor) { Contractor = contractor; ButtonContent = "Edytuj"; ButtonCommand = new RelayCommand(EditContractor); }
public EntryViewModel() { ButtonCommand = new RelayCommand(AddEntry); ButtonContent = "Dodaj"; Title = "Dodawanie nowego wpisu"; }