private void btnExpress_Click(object sender, EventArgs e) { frmExpressBulider bulider2 = new frmExpressBulider { MapTemplate = this.mapTemplateElement_0.MapTemplate, Expression = this.textBox1.Text }; if (bulider2.ShowDialog() == DialogResult.OK) { this.textBox1.Text = bulider2.Expression; } }
private void btnExpress_Click(object sender, EventArgs e) { if ((this.cboCol.SelectedIndex != -1) && (this.cboRow.SelectedIndex != -1)) { frmExpressBulider bulider2 = new frmExpressBulider { MapTemplate = this.MapTemplateTableElement.MapTemplate, Expression = this.txtExpress.Text }; if (bulider2.ShowDialog() == DialogResult.OK) { this.txtExpress.Text = bulider2.Expression; this.method_0(this.cboRow.SelectedIndex, this.cboCol.SelectedIndex, this.txtExpress.Text); } } }