public void NewInstitutionAccount() { using (var ctx = new PayrollDB(Properties.Settings.Default.PayrollDB)) { DataLayer.InstitutionAccount newemp = ctx.Accounts.CreateObject <DataLayer.InstitutionAccount>(); ctx.Accounts.AddObject(newemp); CurrentInstitutionAccount = newemp; OnPropertyChanged("CurrentInstitutionAccount"); } }
public void EditAccount(DataLayer.InstitutionAccount acc) { CurrentInstitutionAccount = acc; }