为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

1.高效数控机床钻孔软件 源代码

2019-08-01 15页 doc 29KB 21阅读

用户头像

is_882336

暂无简介

举报
1.高效数控机床钻孔软件 源代码高效数控机床钻孔软件源代码 1 /****************************************************** //**系统登录 //******************************************************/ using System; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using...
1.高效数控机床钻孔软件  源代码
高效数控机床钻孔软件源代码 1 /****************************************************** //**系统登录 //******************************************************/ using System; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.IO; public partial class系统登录 { /// Enum for item states. public SysBegin { /// The normal state for a item. Restored, /// The maxmized state for a item. Maximized, /// The minimized state for a item. Minimized private string name; private int age; private int? nullableAge; private DateTime birthDate; private DateTime? nullableBirthDate; private Person pet; private bool married; private bool? nullableMarried; private double salary; [Display(ShortName = "")] //**用户名称 public string Name { get { return this.name; } set { if (this.Name != value) { this.name = value; this.OnPropertyChanged("Name"); } } } [Display(ShortName = "")] //**用户年龄 public int Age { get { return this.age; } set { if (this.Age != value) { this.age = value; this.OnPropertyChanged("Age"); } } } [Display(ShortName = "")] public int? NullableAge { get { return this.nullableAge; } set { if (this.NullableAge != value) { this.nullableAge = value; this.OnPropertyChanged("NullableAge"); } } } [Display(ShortName = ")] public bool Married { get { return this.married; } set { if (this.Married != value) { this.married = value; this.OnPropertyChanged("Married"); } } } [Display(ShortName = "")] public bool? NullableMarried { get { return this.nullableMarried; } set { if (this.NullableMarried != value) { this.nullableMarried = value; this.OnPropertyChanged("NullableMarried"); } } } [Display(ShortName = "")] //**用户生日 public DateTime BirthDate { get { return this.birthDate; } set { if (this.BirthDate != value) { this.birthDate = value; this.OnPropertyChanged("BirthDate"); } } } [Display(ShortName = "")] public DateTime? NullableBirthDate { get { return this.nullableBirthDate; } set { if (this.NullableBirthDate != value) { this.nullableBirthDate = value; this.OnPropertyChanged("NullableBirthDate"); } } [Display(ShortName = "Животно")] //**验证用户 public Person Pet { get { return this.pet; } set { if (this.Pet != value) { this.pet = value; this.OnPropertyChanged("Pet"); } } } [Display(ShortName = "Заплата")] public double Salary { get { return this.salary; } set { if (this.Salary != value) { this.salary = value; this.OnPropertyChanged("Salary"); } } } //**随机 private static Random random = new Random(); public Person() { int r = random.Next(0, 100); if (r % 2 == 0) { this.name = "person1"; } else if (r % 3 == 0) { this.name = " person 2"; } else if (r % 4 == 0) { this.name = " person 3"; else if (r % 5 == 0) { this.name = " person 4"; } this.nullableAge = this.age = r; this.nullableBirthDate = this.birthDate = DateTime.Now.AddYears(-r); this.nullableMarried = this.married = r % 2 == 0; this.salary = (r * 1000) / 13; if (r % 3 == 0) { this.nullableAge = null; this.nullableBirthDate = null; this.nullableMarried = null; } this.pet = new Person(); } public override string ToString() { return string.Format("{0} that was born in {1} and has a {2}." , this.Name , this.BirthDate.Year , this.Pet ); } } //**记录用户 public class Person : ViewModelBase { private string name; /// Gets or sets the name. ///The name. ///名称 public string Name { get { return this.name; } set { if (this.Name != value) { this.name = value; this.OnPropertyChanged("Name"); } } }
/
本文档为【1.高效数控机床钻孔软件 源代码】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索