public OperationResultOfInt32 CreateUser(UserDO UserInfo) { object[] results = this.Invoke("CreateUser", new object[] { UserInfo }); return((OperationResultOfInt32)(results[0])); }
private void toolStripButton1_Click(object sender, EventArgs e) { localhost.UserAdmin _userAdminProxy = new localhost.UserAdmin(); localhost.UserDO _userInfo = new localhost.UserDO() { Name = this.textBox1.Text, LastName = this.textBox2.Text, Email = this.textBox3.Text, NickName = this.textBox4.Text }; try { localhost.OperationResultOfInt32 _opResult = _userAdminProxy.CreateUser(_userInfo); this.textBox5.Text = string.Format("{0} - {1} [{2}]", _opResult.OpStatus, _opResult.OpMessage, _opResult.OpResult); MessageBox.Show(this, _opResult.OpMessage, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);; } catch (Exception ex) { MessageBox.Show(this, ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);; } }
/// <remarks/> public void CreateUserAsync(UserDO UserInfo, object userState) { if ((this.CreateUserOperationCompleted == null)) { this.CreateUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateUserOperationCompleted); } this.InvokeAsync("CreateUser", new object[] { UserInfo }, this.CreateUserOperationCompleted, userState); }
/// <remarks/> public void CreateUserAsync(UserDO UserInfo) { this.CreateUserAsync(UserInfo, null); }