public void registration(string username, string password) { myuser user = new myuser(); user.Username = username; user.Password = password; data.datalist.Add(user); }
public bool registration(string username, string password, string type) { bool check = true; myuser user = new myuser(); if ((username == "") && (password == "") && (type == "")) { check = false; } else { user.Username = username; user.Password = password; user.Type = type; data.datalist.Add(user); } return(check); }