Beispiel #1
0
        public void AddUser()
        {
            User user = new User()
            {
                Username = "******",
                Password = "******",
            };

            SQLiteDatabaseAccess.AddUser(user);
        }
Beispiel #2
0
        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);
        }