private void OnAddUserCommand() { //InvokeOperation<int> loadMaxUserID = operationDomainComtext.GetMaxUserID(); //loadMaxUserID.Completed += loadMaxUserID_Completed; AddUserEntity = new UserEntity(); ProductManager.Web.Model.user user = new ProductManager.Web.Model.user(); AddUserEntity.User = user; AddUserEntity.UserNameDictionary = UserEntityDictionary; user.user_password = Cryptography.MD5CryptoServiceProvider.GetMd5String("123456"); AddUserEntity.Update(); UserEntityWindow userEntityWindow = new UserEntityWindow(UserEntityViewType.ADD, AddUserEntity, DepartmemtList); userEntityWindow.Closed += new EventHandler(AddUser_Closed); userEntityWindow.Show(); }