コード例 #1
0
 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;
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 public UserTask()
 {
     this.user = new User();
 }