private void CreateNewUserButton_Click(object sender, EventArgs e) { userCreator.SetSetting((int)StartDomain.Value, !EndSpecifiedCheckBox.Checked, (int)EndDomain.Value); try { DataDatabase.AddUserToUserDatabase(userCreator.GetUser()); KillGLoginThreads(); this.Dispose(); } catch (InvalidOperationException ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK); } }