Exemplo n.º 1
0
        private void OperatingConfigBOLoad()
        {
            OperatingConfigBO tmp = OperatingConfigBO.getOperatingConfigBO();

            skinCheckBox5.Checked  = tmp.isRecording;
            skinCheckBox4.Checked  = tmp.isFrequency;
            numericUpDown1.Value   = tmp.frequency;
            skinCheckBox7.Checked  = tmp.isFinalProcedure;
            skinWaterTextBox2.Text = File.Exists(tmp.finalProcedure) ? tmp.finalProcedure : "";
        }
Exemplo n.º 2
0
        private void OperatingConfigBOSave()
        {
            OperatingConfigBO tmp = new OperatingConfigBO();

            tmp.isRecording      = skinCheckBox5.Checked;
            tmp.isFrequency      = skinCheckBox4.Checked;
            tmp.frequency        = Int32.Parse(numericUpDown1.Value.ToString());
            tmp.isFinalProcedure = skinCheckBox7.Checked;
            tmp.finalProcedure   = skinWaterTextBox2.Text;
            OperatingConfigBO.setOperatingConfigBO(tmp);
        }
Exemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            hook = new KeysHook();
            this.time1.Parent      = this.skinPictureBox1;
            this.skinLabel1.Parent = this.skinPictureBox1;
            //==
            FullScreenConfigBO tmpFBO = FullScreenConfigBO.getFullScreenConfigBO();

            if (tmpFBO.isImg)
            {
                // this.BackPalace = File.Exists(tmpFBO.backgroundImg) ? Image.FromFile(tmpFBO.backgroundImg) : null;
                this.skinPictureBox1.ImageLocation = File.Exists(tmpFBO.backgroundImg) ? tmpFBO.backgroundImg : "";
            }
            else
            {
                this.skinPictureBox1.BackColor = tmpFBO.backgroundColor;
                //this.CaptionBackColorTop = tmpFBO.backgroundColor;
                //this.CaptionBackColorBottom = tmpFBO.backgroundColor;
                //this.BackColor = tmpFBO.backgroundColor;
            }
            this.SkinOpacity = tmpFBO.transparency * 0.01;

            //===
            PasswordConfigBO pBO = PasswordConfigBO.getPasswordConfigBO();

            infoPictureBox.Visible = pBO.isPasswordPrompt;
            infoLabel.Text         = pBO.passwordPrompt;

            //===
            this.oBO = OperatingConfigBO.getOperatingConfigBO();

            skinLabel1.Text    = "可尝试次数:" + this.oBO.frequency;
            skinLabel1.Visible = this.oBO.isFrequency;


            hook.Hook_Start();
            passTextBox.Text    = "";
            this.timer1.Enabled = true;
            FullScreenHelper.SetFormFullScreen(true);
            this.WindowState = FormWindowState.Maximized;
            this.Activate();//
        }