using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace POSV.Member { public partial class CardGoRechargeForm : BusinessForm { private string cardNo; public CardGoRechargeForm(string memberName,string cardNo , string faceNo, decimal memberAmount,decimal memberPoint) { InitializeComponent(); this.controlBox.Text = "会员消费提醒"; this.controlBox.ShowApplicationVersion = false; this.memberNamelabelX.Text = memberName;//会员姓名 this.cardNolabelX.Text = faceNo;//会员卡号 this.yelabelX.Text = string.Format("{0}", memberAmount); this.jflabelX.Text = string.Format("{0}", memberPoint); this.cardNo = cardNo; } private void Btn_Cancel(object sender, EventArgs e) { OnCloseTouchClick(sender, e); } private void OnCloseTouchClick(object sender, EventArgs e) { //先关闭父窗体 if (this.Owner != null) { this.Owner.Close(); } //再关闭当前窗体 this.Close(); } /// /// 去充值 /// /// /// private void Btn_Recharge(object sender, EventArgs e) { OnRechargeClick?.Invoke(sender, new NotifyEventArgs(NotifyAction.Notify, "memberRecharge", this.cardNo)); //先关闭父窗体 if (this.Owner != null) { this.Owner.Close(); } //再关闭当前窗体 this.Close(); } public event NofityEventHandler OnRechargeClick; private void OnControlBoxCloseClick(object sender, EventArgs e) { OnCloseTouchClick(sender, e); } } }