private User CreateUserInstance(String email, String pass) { User u = new User(); u.Email = email; u.Password = pass; return u; }
/** * Constructor with User * */ public User(User u) { _username = u.Username; _email = u.Email; _password = u.Password; }
/** * Deserialization Constructor * */ public DataBaseUser(SerializationInfo info, StreamingContext ctxt) { _user = (User)info.GetValue("User", typeof(User)); _software_list = (Dictionary<int, Software>)info.GetValue("Software_List", typeof(Dictionary<int, Software>)); _charac = (Dictionary<int, Characteristic>)info.GetValue("Charac", typeof(Dictionary<int, Characteristic>)); }
/** * Constructor with Value * */ public DataBaseUser(DataBaseUser db) { _user = db.User; _software_list = db.Software_list; _charac = db.Charac; }
/** * Constructor with parameters * */ public DataBaseUser(User user, Dictionary<int, Software> software_list, Dictionary<int, Characteristic> charac) { _user = user; _software_list = software_list; _charac = charac; }
/** * Constructor default * */ public DataBaseUser() { _user = new User(); _software_list = new Dictionary<int, Software>(); _charac = new Dictionary<int, Characteristic>(); }