Esempio n. 1
0
 /// <summary>
 /// 选择原因
 /// </summary>
 private void panelChoose_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(this.TxtDiscount.Text))
     {
         Member mb = new Member();
         mb           = (Member)this.Owner;
         this.Visible = false;
         PaymentReasons pr = new PaymentReasons();
         pr.Owner     = this;
         this.Visible = false;
         pr.TopLevel  = false;
         mb.panelChildren.Controls.Add(pr);
         pr.Show();
     }
     else
     {
         Messagebox mb = new Messagebox();
         PassValue.MessageInfor = "其他支付金额不能为空!";
         mb.ShowDialog();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 选择原因
 /// </summary>
 private void panelChoose_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(this.TxtDiscount.Text))
     {
         Member mb = new Member();
         mb = (Member)this.Owner;
         this.Visible = false;
         PaymentReasons pr = new PaymentReasons();
         pr.Owner = this;
         this.Visible = false;
         pr.TopLevel = false;
         mb.panelChildren.Controls.Add(pr);
         pr.Show();
     }
     else
     {
         Messagebox mb = new Messagebox();
         PassValue.MessageInfor = "其他支付金额不能为空!";
         mb.ShowDialog();
     }
 }