コード例 #1
0
        public void NewInstitution()
        {
            using (var ctx = new PayrollDB(Properties.Settings.Default.PayrollDB))
            {
                DataLayer.Institution newemp = ctx.Institutions.CreateObject();
                ctx.Institutions.AddObject(newemp);

                CurrentInstitution = newemp;
            }
            OnPropertyChanged("CurrentInstitution");
        }
コード例 #2
0
 public void EditAccount(DataLayer.Institution acc)
 {
     CurrentInstitution = acc;
 }