public void OnEQPIDSelectedEvent(object sender, ParentChildRelateEventArgs <string> e) { if (this.EQPIDSelectedEvent != null) { EQPIDSelectedEvent(sender, e); } }
private void ucButtonOK_Click(object sender, EventArgs e) { if (this.dataGridViewEQPID.Rows.Count == 0) { return; } string eqpidList = string.Empty; for (int i = 0; i < dataGridViewEQPID.Rows.Count; i++) { if (dataGridViewEQPID.Rows[i].Cells[0].Value.ToString().ToLower() == "true") { eqpidList += "," + dataGridViewEQPID.Rows[i].Cells["EQPID"].Value.ToString().Trim().ToUpper(); } } if (eqpidList.Length > 0) { eqpidList = eqpidList.Substring(1); } ParentChildRelateEventArgs <string> args = new ParentChildRelateEventArgs <string>(eqpidList); this.OnEQPIDSelectedEvent(sender, args); this.Close(); }
public void OnBigLineSelectedEvent(object sender, ParentChildRelateEventArgs <string> e) { if (this.BiglineSelectedEvent != null) { BiglineSelectedEvent(sender, e); } }
private void ssCodeSelectorForFactory_SSCodeSelectedEvent(object sender, ParentChildRelateEventArgs <string> e) { this.txtSSCodeListForFactory.Text = e.CustomObject; }
private void eqpIDSelector_EqpIDSelectedEvent(object sender, ParentChildRelateEventArgs <string> e) { this.txtEQPID.Text = e.CustomObject; }