public AddUserWindow(Window window) { InitializeComponent(); this.userTask = new UserTask(); this.user = new User(); this.userTask.User = this.user; canvasUser.DataContext = this.userTask.User; dtpUser.DisplayDate = DateTime.Today; dtpUser.DisplayDateStart = new DateTime(1925, 1, 1); dtpUser.DisplayDateEnd = DateTime.Today; }
public void save(User user) { this.user = user; IMySession s = null; IUserRepository ur = Registry.RepositoryFactory.createUserRepository(); try { s = Registry.RepositoryFactory.createSqlSession(); ur.save(this.user, s); } catch (RepositoryException e) { e.ToString(); } }
public UserTask() { this.user = new User(); }