public Debitors(string name, double balance, Debt debt) { _name = name; _balance = balance; _debts = new ObservableCollection <Debt>(); if (debt != null) { _debts.Add(debt); } }
// copy constructor public Debt(Debt copy) { _amount = copy._amount; _postname = copy._postname; _lastupdated = copy._lastupdated; }