private void create_Click(object sender, EventArgs e) { UUID scopeID; UUID userID; if (user_name.Text == "" || !UUID.TryParse(scope_id.Text, out scopeID) || !UUID.TryParse(user_id.Text, out userID) || password.Text == "") { MessageBox.Show("Please fill in all the information"); return; } UserName = user_name.Text; _regionManagement.CreateUser(user_name.Text, password.Text, email.Text, userID, scopeID); Close(); }