private void button6_Click(object sender, EventArgs e) { FormCustContactAdd fcca = new FormCustContactAdd(); fcca.type = "add"; fcca.custid = this.custid; fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr); fcca.ShowDialog(); init_lxr(); }
private void button8_Click(object sender, EventArgs e) { if (dataGridView_contacts.SelectedRows.Count > 0) { if (this.dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value == null) { return; } string sysid_ = dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim(); if (sysid_ == "") { return; } FormCustContactAdd fcca = new FormCustContactAdd(); fcca.type = "edit"; fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr); fcca.custid = this.custid; fcca.sysid_ = sysid_; fcca.ShowDialog(); init_lxr(); } }
private void button8_Click(object sender, EventArgs e) { if (dataGridView_contacts.SelectedRows.Count > 0) { if (this.dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value==null) return; string sysid_ = dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim(); if (sysid_ == "") return; FormCustContactAdd fcca = new FormCustContactAdd(); fcca.type = "edit"; fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr); fcca.custid = this.custid; fcca.sysid_ = sysid_; fcca.ShowDialog(); init_lxr(); } }