private void BtnEmploy_Click(object sender, EventArgs e) { if (WPHbROWDGV.Rows[WPHbROWDGV.CurrentCell.RowIndex].Cells["Type"].Value.ToString() == "待处理") { int ID_ = WPHbROWDGV.CurrentCell.RowIndex; ReturnMoneyEdit ete = new ReturnMoneyEdit(WPHbROWDGV.Rows[WPHbROWDGV.CurrentCell.RowIndex].Cells["ID"].Value.ToString(), 3); ete.ShowDialog(); brows(); WPHbROWDGV.Rows[ID_].Selected = true; } else { MessageBox.Show("该状态不能处理!!"); } }
private void BtnNew_Click(object sender, EventArgs e) { ReturnMoneyEdit ete = new ReturnMoneyEdit("", 1); ete.ShowDialog(); }