/// <summary> /// 开始查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void myBtnExt1_BtnClick_1(object sender, EventArgs e) { try { if (readIdCardFrm == null) { this.Visible = false; readIdCardFrm = new ReadIdCardFrm(model, this.resultJSON); readIdCardFrm.Owner = this; readIdCardFrm.Show(); } else { if (readIdCardFrm.IsDisposed == true) { this.Visible = false; readIdCardFrm = new ReadIdCardFrm(model, this.resultJSON); readIdCardFrm.Owner = this; readIdCardFrm.Show(); } else { this.Visible = false; readIdCardFrm.Visible = true; } } } catch (Exception ex) { /*可选处理异常*/ LogHelper.WriteLine("HomeForm:" + ex.Message.ToString()); } }
private void UserSelectForm_Load(object sender, EventArgs e) { ucDatePickerExt1.CurrentTime = DateTime.Now.AddMonths(-1); ucDatePickerExt2.CurrentTime = DateTime.Now; SimpleLoading loadingfrm = new SimpleLoading(this); SplashScreenManager loading = new SplashScreenManager(loadingfrm); loading.ShowLoading(); try { homeForm = (HomeForm)this.Owner.Owner; readIdCardFrm = (ReadIdCardFrm)this.Owner; MySendDataUserInfoData += this.ucTestGridTableCustom1.BindingUserInfoData; BindingData(); SetDataGridtableData(); } catch (Exception ex) { LogHelper.WriteLine("UserSelectForm: " + ex.Message.ToString()); } finally { loading.CloseWaitForm(); } }