Example #1
0
        private void FullScreenConfigLoad()
        {
            FullScreenConfigBO tmpFBO = FullScreenConfigBO.getFullScreenConfigBO();
            bool isImg = tmpFBO.isImg;

            this.skinRadioButton2.Checked = isImg;
            skinColorSelectPanel1.Visible = !isImg;
            if (isImg)
            {
                if (File.Exists(tmpFBO.backgroundImg))
                {
                    this.skinPictureBox1.ImageLocation = tmpFBO.backgroundImg;
                }
                else
                {
                    this.skinPictureBox1.Image = Properties.Resources.择图片2__1_;
                }
            }
            else
            {
                this.skinColorSelectPanel1.SelectedColor = tmpFBO.backgroundColor;
                this.skinPictureBox1.BackColor           = tmpFBO.backgroundColor;
            }
            this.skinTrackBar1.Value   = 100 - tmpFBO.transparency;
            this.skinLabel14.Text      = tmpFBO.transparency.ToString();
            this.skinCheckBox1.Checked = tmpFBO.offTaskManager;
        }
Example #2
0
        private void FullScreenConfigSave()
        {
            FullScreenConfigBO fBO = new FullScreenConfigBO();

            fBO.isImg           = skinRadioButton2.Checked;
            fBO.backgroundImg   = skinPictureBox1.ImageLocation;
            fBO.backgroundColor = skinColorSelectPanel1.SelectedColor;
            fBO.transparency    = 100 - skinTrackBar1.Value;
            fBO.offTaskManager  = skinCheckBox1.Checked;
            FullScreenConfigBO.setFullScreenConfigBO(fBO);
        }
Example #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();//
        }