Пример #1
0
        private void AddNewUser()
        {
            User newUser = new User();

            GetUser(newUser);
            // send to webservice
            ServiceRequest.Post svc = new ServiceRequest.Post();
            //svc.RequestType = "addNewUser";
            svc.PostData = newUser;
            svc.AddNewUser();
            // if rc = 0 then add to collection
            if (svc.Success)
            {
                Users.Add(newUser);
                base.OnPropertyChanged("UserList");
            }
        }