예제 #1
0
        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);
        }
예제 #2
0
        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;
            }
            }
        }