void ButtonAddWareHouseClick(object sender, EventArgs e) { //新仓库 FormWareHouse tF = new FormWareHouse(); tF.Text = "仓库信息-新增"; tF.ShowDialog(); RefreshWareHouse(); }
void ButtonModifyWareHouseClick(object sender, EventArgs e) { //修改 if (dataGridViewWareHouse.CurrentRow != null) { FormWareHouse tF = new FormWareHouse(); tF.i_WareHouseID = Convert.ToInt32(dataGridViewWareHouse.CurrentRow.Cells[0].Value.ToString()); tF.Text = "仓库信息-修改"; tF.ShowDialog(); } else { MessageBox.Show("请选择要修改的收支项目!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); } RefreshWareHouse(); }