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