CentralServerDemo.MainForm.ics_RegistrationResponse C# (CSharp) Method

ics_RegistrationResponse() private method

Registration response event handler
private ics_RegistrationResponse ( object sender, bool registrationSuccess, string messageFromServer ) : void
sender object
registrationSuccess bool
messageFromServer string
return void
		private void ics_RegistrationResponse(object sender, bool registrationSuccess, string messageFromServer)
		{
			Invoke(new MethodInvoker(delegate
			{
				if (registrationSuccess)
				{
					txtUserName.Text = regForm.txtUserName.Text;
					txtPassword.Text = regForm.txtPassword.Text;

					MessageBox.Show("User successfully registered, please login", "Success", MessageBoxButtons.OK,
									MessageBoxIcon.Information);

				}
				else
				{
					MessageBox.Show("Unable to register user : " + messageFromServer, "Error", MessageBoxButtons.OK,
									MessageBoxIcon.Error);
				}
			}
			));

		}
MainForm