public override void ReturnCmd() { int userId = Convert.ToInt32(userDGV.CurrentRow.Cells["id"].Value); DataTable chargeUserHistory = OMWorkBench.DataAgent.GetUserCharge(userId); ChargeUserHistForm chargeUser = new ChargeUserHistForm(chargeUserHistory); chargeUser.ShowDialog(this); }
private void Label_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { LinkLabel thisLabel = sender as LinkLabel; switch (thisLabel.Name) { case "parentLabel": { break; } case "chargeNumLabel": { DataTable chargeUserHistory = OMWorkBench.DataAgent.GetUserCharge(_userId); ChargeUserHistForm chargeUser = new ChargeUserHistForm(chargeUserHistory); chargeUser.ShowDialog(this); break; } } }