public ActivationSuccess(string cardNo, string pwd)
 {
     InitializeComponent();
     SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
     UpdateStyles();
     this.Location             = new Point(clientobject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Location.X, clientobject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Location.Y);
     this.Size                 = new System.Drawing.Size(clientobject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Size.X, clientobject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Size.Y);
     lblTitleAd.Text           = clientobject.ClientSetting.TitleAd;
     this.lblCardNo.Text       = cardNo;
     this.lblPwd.Text          = pwd;
     countdown                 = new FormCloseCountdown(9);
     countdown.EventCountdown += new EventHandler(countdown_EventCountdown);
 }
Example #2
0
 /// <summary>
 /// 窗体关闭时间
 /// </summary>
 /// <param name="closeTime"></param>
 public NoKeyboard(int closeTime)
 {
     InitializeComponent();
     SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
     UpdateStyles();
     this.Location = new Point(clientObject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Location.X, clientObject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Location.Y - 50);
     if (closeTime < 9)
     {
         countDown = new FormCloseCountdown(closeTime);
     }
     else
     {
         countDown = new FormCloseCountdown(9);
     }
     countDown.EventCountdown += new EventHandler(countDown_EventCountdown);
 }
Example #3
0
        public TipForm_SelectSeatConfinmed(string roomName, string seatNo, int closeTime)
        {
            InitializeComponent();
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();
            lblTitleAd.Text = clientObject.ClientSetting.TitleAd;
            this.Location   = new Point(clientObject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Location.X, clientObject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Location.Y);
            this.Size       = new System.Drawing.Size(clientObject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Size.X, clientObject.ClientSetting.DeviceSetting.SystemResoultion.TooltipSize.Size.Y);

            if (closeTime < 9)
            {
                countDown = new FormCloseCountdown(closeTime);
            }
            else
            {
                countDown = new FormCloseCountdown(9);
            }
            countDown.EventCountdown += new EventHandler(countDown_EventCountdown);
            lblRoomName.Text          = roomName;
            lblSeatNo.Text            = seatNo;
        }
 private void ActivationClose_Load(object sender, EventArgs e)
 {
     countdown = new FormCloseCountdown(9);
     countdown.EventCountdown += new EventHandler(countdown_EventCountdown);
 }