你的位置:首页 > 软件开发 > ASP.net > WPF学习之路(十)实例:用户注册

WPF学习之路(十)实例:用户注册

发布时间:2015-04-22 11:00:21
通过一个注册用户的实例了解页面间数据的传递 首先构建一个User类 User.cspublic class User{ private string name; public string Name { get { return this.name; } ...

通过一个注册用户的实例了解页面间数据的传递

 

首先构建一个User类  User.cs

WPF学习之路(十)实例:用户注册WPF学习之路(十)实例:用户注册
public class User{  private get='_blank'>string name;  public string Name  {    get { return this.name; }    set { this.name = value; }  }  private string password;  public string Password  {    get { return this.password; }    set { this.password = value; }  }  private List<string> favColors;  public List<string> FavColors  {    get { return this.favColors; }    set { this.favColors = value; }  }  public User() { }  public User(string name, string password)  {    this.name = name;    this.password = password;    favColors = new List<string>();  }  public override string ToString()  {    return "Name: {0}" + name;  }  public override bool Equals(object obj)  {    if (obj is User)    {      return (obj as User).Name.Equals(this.name) && (obj as User).Password.Equals(this.password);    }    return false;  }  public override int GetHashCode()  {    return this.name.GetHashCode();  }}

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:WPF学习之路(十)实例:用户注册

关键词:wpf

wpf
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。