Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
 public void EditAccount(DataLayer.InstitutionAccount acc)
 {
     CurrentInstitutionAccount = acc;
 }