Esempio n. 1
0
        //加载主界面
        private void Form1_Load(object sender, EventArgs e)
        {
            if (_pageNum == 0)
            {
                logonform.ShowDialog();             //加载登录界面
                if (LogonFormResult(_pageNum) == 0) //登录结果
                {
                    //posback.GetPra();
                }
            }
            _pageNum = 1;
            label_LoginPattern.Text = posconfig.LoginPattern; //显示启动模式
            dtime.Start();                                    //开启显示时间
            PosBack posback = new PosBack();

            posback.GetPra();                //模拟取参
            Update_panel_Parameters_Show();
            tabControl1.Visible      = true; //标签控制页
            panel_Parameters.Visible = true; //显示参数区域

            nownumbox = BetNo_A1;
            nownumbox.Focus();

            toolTip1.SetToolTip(tableLayoutPanel_SomePra, posconfig.ServerIP + "\r\n" + posconfig.Port);
            toolTip1.SetToolTip(Btn_Logonoff, posconfig.ServerIP + "\r\n" + posconfig.Port);
            toolTip1.SetToolTip(label_Date, posconfig.ServerIP + "\r\n" + posconfig.Port);
        }
Esempio n. 2
0
        //投注 F8


        //登录\注销
        private void Btn_Logonoff_Click(object sender, EventArgs e)
        {
            logonform = new LogOnForm();
            logonform.ShowDialog();
            LogonFormResult(_pageNum);
        }