public void AddUser() { User user = new User() { Username = "******", Password = "******", }; SQLiteDatabaseAccess.AddUser(user); }
private void Register_Click(object sender, EventArgs e) { User user = new User() { Username = usernameTextbox.Text, Password = passwordTextbox.Text, }; SQLiteDatabaseAccess.AddUser(user); MessageBox.Show("Register Success", "Success", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); }