public bool Check() { try { if (!Fun.CheckEmail(this.email) || !Fun.CheckPhone(this.phone) || !Fun.CheckGender(this.gender) || !(this.pwd == this.cpwd)) { return(false); } } catch (Exception ex) { Console.WriteLine(ex.ToString()); return(false); } return(true); }