コード例 #1
0
        private void _view_UserAdd(object sender, EventArgs e)
        {
            var user = new User()
            {
                Name = _view.UserName,
                Age  = Convert.ToInt32(_view.UserAge)
            };

            _model.AddItem(user);
            _facade.SendNotification(ApplicationFacade.USER_ADDED);
        }