private void button2_Click_1(object sender, EventArgs e)
        {
            var user = new User
            {
                Name     = this.Name.Text,
                Username = this.username.Text,
                Password = this.Password.Text,
            };

            _fileUserStore.AddUser(user);
        }
Beispiel #2
0
        public User Register(string name, string username, string password)
        {
            var user = new User()
            {
                Name     = name,
                Password = password,
                Username = username
            };

            MessageBox.Show("You're registered!");
            _fileStore.AddUser(user);
            return(user);
        }