public EditQuanForm(Model.MotivationEnum.CountryEnum country, string handleQuanDetailKey = "") { this.handleQuanDetailKey = handleQuanDetailKey; this.country = country; InitializeComponent(); this.ShowInTaskbar = false; this.initCommon(); if (this.country == Model.MotivationEnum.CountryEnum.UK)//英国 { this.HandleQuanDetail = new Model.DTO.UKHandleQuanDetail(); this.initUK(); } else { this.HandleQuanDetail = new Model.DTO.HKHandleQuanDetail(); this.initHK(); } }
public EditNumForm(Model.MotivationEnum.CountryEnum country, string contractNum = "") { InitializeComponent(); this.ShowInTaskbar = false; this.handleNumDetailKey = contractNum; this.country = country; this.initCommon(); if (this.country == Model.MotivationEnum.CountryEnum.UK)//英国 { this.initUK(); } else//香港 { this.initHK(); } //注册MRUEdit删除item事件 this.mruSenior.Properties.Items.CollectionChanged += Senior_CollectionChanged; this.mruContractNum.TextChanged += mruContractNum_TextChanged; this.mruStudentName.TextChanged += mruStudentName_TextChanged; }
private void fileList_SelectedIndexChanged(object sender, EventArgs e) { if (this.fileList.SelectedIndex == 0) { this.country = Model.MotivationEnum.CountryEnum.UK; } else if (this.fileList.SelectedIndex == 1) { this.country = Model.MotivationEnum.CountryEnum.HK; } this.initNumPanel(Controller.MainWin.MotivationData.Instanse.HandleNum); this.initQuanPanel(Controller.MainWin.MotivationData.Instanse.HandleQuan); this.bindContract(this.country, 1); Controller.MessageConsole.WriteLabel(Controller.MainWin.Contract.GetContractSurvey(this.country)); this.setAuth(); }
public Contract(Model.MotivationEnum.CountryEnum country) { this.country = country; }