void ButtonAddClick(object sender, EventArgs e) { //增加 FormCompany tF = new FormCompany(); tF.Text = "未付款信息-新增"; tF.ShowDialog(); RefreshAccount(); }
void ButtonNewCompanyClick(object sender, EventArgs e) { //新单位 FormCompany tF = new FormCompany(); tF.Text = "相关单位-新增"; tF.ShowDialog(); RefreshCompanies(); }
void ButtonModifyClick(object sender, EventArgs e) { //修改 if (dataGridView1.CurrentRow != null) { FormCompany tF = new FormCompany(); tF.i_CompanyID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value.ToString()); tF.Text = "未付款信息-修改"; tF.ShowDialog(); } else { MessageBox.Show("请选择要修改的客户或供应商!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); } RefreshAccount(); }