public CouponsPopForm(CouponPicInfo info, MainFrame myFrame) { InitializeComponent(); this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); this.Panel_Background.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(Panel_Background, true, null); this.Location = new Point(10, 10); this.pi = info; this.Frame = myFrame; this.Label_Top.Text = GlobalVariables.StrPhone; pd.BeginPrint += new PrintEventHandler(pd_BeginPrint); pd.EndPrint += new PrintEventHandler(pd_EndPrint); pd.PrintPage += new PrintPageEventHandler(pd_PrintPage); pd.DocumentName = "coupon"; if (pi.intSendBySM == 1) { btn_SM.Visible = true; Button_Print.Location = new Point(1, 695); Button_Close.Location = new Point(249, 695); } else { btn_SM.Visible = false; Button_Print.Location = new Point(47, 695); Button_Close.Location = new Point(199, 695); } }
public check(double _price, String _id, MainFrame frame) { InitializeComponent(); this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); this.Location = new Point(10, 150); this.mf = frame; id = _id; this.Reget.Text = "重新获取(" + TickNum + ")"; this.Reget.Enabled = false; GlobalVariables.isKeyBoardExist = false; this.Notice.Text = "您即将进行交易的金额为: " + _price + " 元"; this.getCode.Enabled = true; this.getCode.Start(); TickNum = 30; th = new Thread(new ThreadStart(sendMes)); th.Start(); }
public Info(double price, String name, MainFrame frame) { InitializeComponent(); this.Location = new Point(180,600); this.mf = frame; this.labelInfo.Text = ""; this.labelInfo.Text += "优惠劵名称: " + name + "\n优惠劵价格:" + price + "元\n"; if (price.Equals(0)) { this.labelInfo.Text += "您要打印的优惠劵是免费卷,不需要支付任何金额,是否继续打印?"; } else { this.labelInfo.Text += "您要打印的优惠劵是有价卷,需要从您的账户中扣除相应的金额,是否继续打印?"; } }
public DownloadInfo(MainFrame f) { form = f; }