public void NewAccount() { using (var ctx = new PayrollDB(Properties.Settings.Default.PayrollDB)) { DataLayer.Account newemp = ctx.Accounts.CreateObject <DataLayer.InstitutionAccounts>(); ctx.Accounts.AddObject(newemp); CurrentAccount = newemp; OnPropertyChanged("CurrentAccount"); } }
public void EditAccount(DataLayer.Account acc) { CurrentAccount = acc; }
internal void EditAccount(DataLayer.Account a) { CurrentAccount = a; }