private void toolStripButton1_Click(object sender, EventArgs e) { BargainsBindAdd bba = new BargainsBindAdd(); bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_); bba.type = "add"; bba.ShowDialog(); }
private void toolStripButton2_Click(object sender, EventArgs e) { if (this.dgv_lst.SelectedRows.Count <= 0) return; if (this.dgv_lst.SelectedRows[0].Cells["编号"].Value == null) return; string djh_ = this.dgv_lst.SelectedRows[0].Cells["编号"].Value.ToString().Trim(); if (djh_ == "") return; BargainsBindAdd bba = new BargainsBindAdd(); bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_); bba.bdid = djh_; bba.type = "edit"; bba.ShowDialog(); }
private void toolStripButton2_Click(object sender, EventArgs e) { if (this.dgv_lst.SelectedRows.Count <= 0) { return; } if (this.dgv_lst.SelectedRows[0].Cells["编号"].Value == null) { return; } string djh_ = this.dgv_lst.SelectedRows[0].Cells["编号"].Value.ToString().Trim(); if (djh_ == "") { return; } BargainsBindAdd bba = new BargainsBindAdd(); bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_); bba.bdid = djh_; bba.type = "edit"; bba.ShowDialog(); }