/// <summary> /// 取消 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnCancel_Click(object sender, EventArgs e) { App.His_Yz_Resault = ""; //this.Close(); frm_Pasc frm = (this.Parent.Parent.Parent) as frm_Pasc; frm.Close(); }
/// <summary> /// 确定 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSure_Click(object sender, EventArgs e) { string strtext = ""; for (int i = 0; i < longDgv.RowCount; i++) { DataGridViewCheckBoxCell sc = longDgv[0, i] as DataGridViewCheckBoxCell; if (sc != null) { if (sc.Value != null) { if (sc.Value.ToString() == "true") { if (strtext == "") { strtext = OutText(longDgv.Rows[i]); } else { strtext += ";" + OutText(longDgv.Rows[i]); } } } } } for (int i = 0; i < ShortDgv.RowCount; i++) { DataGridViewCheckBoxCell sc = ShortDgv[0, i] as DataGridViewCheckBoxCell; if (sc != null) { if (sc.Value != null) { if (sc.Value.ToString() == "true") { if (strtext == "") { strtext = OutText(ShortDgv.Rows[i]); } else { strtext += ";" + OutText(ShortDgv.Rows[i]); } } } } } App.His_Yz_Resault = strtext; //this.Close(); frm_Pasc frm = (this.Parent.Parent.Parent) as frm_Pasc; frm.Close(); }