コード例 #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");
            }
        }
コード例 #2
0
 public void EditAccount(DataLayer.InstitutionAccount acc)
 {
     CurrentInstitutionAccount = acc;
 }