Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
 internal void EditAccount(DataLayer.Account a)
 {
     CurrentAccount = a;
 }