Пример #1
0
        private void InitializeCustomConponet()
        {
            login           = new ImageTextBox();
            password        = new ImageTextBox();
            loginLabel      = new AntiAliasedLabel();
            titleLabel      = new AntiAliasedLabel();
            gameFolder      = new AntiAliasedLabel();
            passwordLabel   = new AntiAliasedLabel();
            showWindowLabel = new AntiAliasedLabel();

            login.Location              = new Point(74, 228);
            login.BorderStyle           = BorderStyle.None;
            login.Size                  = new Size(238, 37);
            login.ForeColor             = Color.Red;
            login.Multiline             = true;
            login.Font                  = new Font(BeaufortforLOL_Bold, 17, GraphicsUnit.Pixel);
            login.BackgroundImage       = Properties.Resources.textBox;
            login.BackgroundImageActive = Properties.Resources.textBox_hover;
            login.Enter                += new EventHandler(login_Enter);
            login.Leave                += new EventHandler(login_Leave);

            password.Location              = new Point(318, 228);
            password.BorderStyle           = BorderStyle.None;
            password.Size                  = new Size(238, 37);
            password.ForeColor             = Color.Red;
            password.Multiline             = true;
            password.Font                  = new Font(BeaufortforLOL_Bold, 17, GraphicsUnit.Pixel);
            password.BackgroundImage       = Properties.Resources.textBox;
            password.BackgroundImageActive = Properties.Resources.textBox_hover;
            password.PasswordChar          = '*';
            password.Enter                += new EventHandler(password_Enter);
            password.Leave                += new EventHandler(password_Leave);

            loginLabel.Text      = "Login";
            loginLabel.Location  = new Point(71, 209);
            loginLabel.BackColor = Color.Transparent;
            loginLabel.ForeColor = Color.FromArgb(160, 155, 140);
            loginLabel.Font      = new Font(BeaufortforLOL_Bold, 15, GraphicsUnit.Pixel);

            passwordLabel.Text      = "Password";
            passwordLabel.Location  = new Point(318, 209);
            passwordLabel.BackColor = Color.Transparent;
            passwordLabel.ForeColor = Color.FromArgb(160, 155, 140);
            passwordLabel.Font      = new Font(BeaufortforLOL_Bold, 15, GraphicsUnit.Pixel);

            showWindowLabel.Text      = "Show window on start";
            showWindowLabel.Location  = new Point(90, 270);
            showWindowLabel.BackColor = Color.Transparent;
            showWindowLabel.ForeColor = Color.FromArgb(160, 155, 140);
            showWindowLabel.Font      = new Font(BeaufortforLOL_Bold, 15, GraphicsUnit.Pixel);

            gameFolder.Text        = "";
            gameFolder.Location    = new Point(74, 174);
            gameFolder.BackColor   = Color.Transparent;
            gameFolder.ForeColor   = Color.FromArgb(160, 155, 140);
            gameFolder.Font        = new Font(BeaufortforLOL_Bold, 15, GraphicsUnit.Pixel);
            gameFolder.BorderStyle = BorderStyle.FixedSingle;
            gameFolder.AutoSize    = false;
            gameFolder.Width       = 455;
            gameFolder.Height      = 22;
            gameFolder.TextAlign   = ContentAlignment.MiddleLeft;
            gameFolder.Click      += new EventHandler(selectFolderButton_Click);

            titleLabel.Text      = "AutoLogin";
            titleLabel.Location  = new Point(234, 20);
            titleLabel.BackColor = Color.Transparent;
            titleLabel.ForeColor = Color.DarkGoldenrod;
            titleLabel.Font      = new Font(BeaufortforLOL_Bold, 30, FontStyle.Bold, GraphicsUnit.Pixel);

            Controls.Add(login);
            Controls.Add(password);
            Controls.Add(loginLabel);
            Controls.Add(passwordLabel);
            Controls.Add(showWindowLabel);
            Controls.Add(gameFolder);
            Controls.Add(titleLabel);
        }
Пример #2
0
        private void InitializeCustomComponent()
        {
            TransparencyKey = Color.Turquoise;
            BackColor       = Color.Turquoise;

            var regular = CustomFont.Load(Properties.Resources.BeaufortforLOL_Regular);
            var bold    = CustomFont.Load(Properties.Resources.BeaufortforLOL_Bold);

            OK.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            OK.ForeColor = Color.FromArgb(160, 155, 140);

            Yes.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Yes.ForeColor = Color.FromArgb(160, 155, 140);

            No.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            No.ForeColor = Color.FromArgb(160, 155, 140);

            Cancel.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Cancel.ForeColor = Color.FromArgb(160, 155, 140);

            Abort.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Abort.ForeColor = Color.FromArgb(160, 155, 140);

            Retry.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Retry.ForeColor = Color.FromArgb(160, 155, 140);

            Ignore.Font      = new Font(regular, 13, FontStyle.Bold, GraphicsUnit.Pixel);
            Ignore.ForeColor = Color.FromArgb(160, 155, 140);

            OK.Click     += new EventHandler(buttonAudioClick);
            Yes.Click    += new EventHandler(buttonAudioClick);
            No.Click     += new EventHandler(buttonAudioClick);
            Cancel.Click += new EventHandler(buttonAudioClick);
            Abort.Click  += new EventHandler(buttonAudioClick);
            Retry.Click  += new EventHandler(buttonAudioClick);
            Ignore.Click += new EventHandler(buttonAudioClick);

            OK.MouseEnter     += new EventHandler(buttonAudioHover);
            Yes.MouseEnter    += new EventHandler(buttonAudioHover);
            No.MouseEnter     += new EventHandler(buttonAudioHover);
            Cancel.MouseEnter += new EventHandler(buttonAudioHover);
            Abort.MouseEnter  += new EventHandler(buttonAudioHover);
            Retry.MouseEnter  += new EventHandler(buttonAudioHover);
            Ignore.MouseEnter += new EventHandler(buttonAudioHover);

            text           = new AntiAliasedLabel();
            text.Location  = new Point(20, 35);
            text.Size      = new Size(Width - 40, 70);
            text.AutoSize  = false;
            text.BackColor = Color.Transparent;
            text.ForeColor = Color.FromArgb(160, 155, 140);
            text.TextAlign = ContentAlignment.TopCenter;
            text.Font      = new Font(regular, 17, FontStyle.Bold, GraphicsUnit.Pixel);

            Caption           = new AntiAliasedLabel();
            Caption.AutoSize  = false;
            Caption.BackColor = Color.Transparent;
            Caption.Width     = Width - 40;
            Caption.Height    = 30;
            Caption.Location  = new Point(20, 20);
            Caption.TextAlign = ContentAlignment.TopCenter;
            Caption.Font      = new Font(bold, 20, FontStyle.Bold, GraphicsUnit.Pixel);
            Caption.ForeColor = Color.FromArgb(240, 230, 210);
            Caption.Visible   = false;

            Controls.Add(Caption);
            Controls.Add(text);
        }