private void InitializeComponent()
        {
            lblUsername = new Label();
            txtUsername = new TextBoxOrComboBox();
            lblPassword = new Label();
            lblStatus = new Label();
            txtPassword = new TextBox();
            btnLogin = new Button();
            pictureBoxLogo = new PictureBox();
            ckBoxSavePassword = new CheckBox();
            lblEmailExample = new Label();
            linkLabelCreateMicrosoftAccountID = new LinkLabel();
            linkLabelPrivacy = new LinkLabel();
            SuspendLayout();
            //
            // lblUsername
            //
            lblUsername.Location = new Point(48, 126);
            lblUsername.Name = "lblUsername";
            lblUsername.Size = new Size(216, 18);
            lblUsername.TabIndex = 7;
            lblUsername.Text = "&Microsoft Account ID:";
            lblUsername.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                 | AnchorStyles.Right)));
            //
            // txtUsername
            //
            txtUsername.Location = new Point(48, 144);
            txtUsername.Name = "txtUsername";
            txtUsername.Size = new Size(216, 23);
            txtUsername.TabIndex = 8;
            txtUsername.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                 | AnchorStyles.Right)));

            //
            // lblPassword
            //
            lblPassword.Location = new Point(48, 190);
            lblPassword.Name = "lblPassword";
            lblPassword.Size = new Size(216, 18);
            lblPassword.TabIndex = 9;
            lblPassword.Text = "&Password:"******"linkLabelCreateMicrosoftAccountID";
            linkLabelCreateMicrosoftAccountID.Size = new Size(216, 40);
            linkLabelCreateMicrosoftAccountID.Text = "Create Microsoft Account ID";
            linkLabelCreateMicrosoftAccountID.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelCreateMicrosoftAccountID_LinkClicked);
            linkLabelCreateMicrosoftAccountID.Visible = false;
            linkLabelCreateMicrosoftAccountID.TabIndex = 13;
            //
            // linkLabelPrivacy
            //
            linkLabelPrivacy.Location = new Point(48, 140);
            linkLabelPrivacy.Name = "linkLabelPrivacy";
            linkLabelPrivacy.Size = new Size(216, 40);
            linkLabelPrivacy.Text = "Privacy Policy";
            linkLabelPrivacy.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelPrivacy_LinkClicked);
            linkLabelPrivacy.Visible = false;
            linkLabelCreateMicrosoftAccountID.TabIndex = 14;

            //
            // txtPassword
            //
            txtPassword.Location = new Point(48, 208);
            txtPassword.Name = "txtPassword";
            txtPassword.PasswordChar = '*';
            txtPassword.Size = new Size(216, 20);
            txtPassword.TabIndex = 10;
            txtPassword.Text = "";
            txtPassword.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                             | AnchorStyles.Right)));
            //
            // btnLogin
            //
            btnLogin.FlatStyle = FlatStyle.System;
            btnLogin.Location = new Point(189, 256);
            btnLogin.Name = "btnLogin";
            btnLogin.TabIndex = 20;
            btnLogin.Text = "&Login";
            btnLogin.Click += new EventHandler(btnLogin_Click);
            btnLogin.Anchor = ((AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right));
            //
            // pictureBoxLogo
            //
            pictureBoxLogo.Location = new Point(48, 40);
            pictureBoxLogo.Name = "pictureBoxLogo";
            pictureBoxLogo.Size = new Size(216, 50);
            pictureBoxLogo.TabStop = false;
            pictureBoxLogo.Click += new EventHandler(pictureBox1_Click);
            pictureBoxLogo.MouseEnter += new EventHandler(pictureBox1_MouseEnter);
            pictureBoxLogo.MouseLeave += new EventHandler(pictureBox1_MouseLeave);
            //
            // ckBoxSavePassword
            //
            ckBoxSavePassword.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                                         )));
            ckBoxSavePassword.FlatStyle = FlatStyle.System;
            ckBoxSavePassword.Location = new Point(50, 232);
            ckBoxSavePassword.Name = "ckBoxSavePassword";
            ckBoxSavePassword.Size = new Size(216, 16);
            ckBoxSavePassword.TabIndex = 11;
            ckBoxSavePassword.Text = "Remember my &password";
            //
            // lblEmailExample
            //
            lblEmailExample.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right)
                                                       )));
            lblEmailExample.ForeColor = SystemColors.ControlDarkDark;
            lblEmailExample.FlatStyle = FlatStyle.System;
            lblEmailExample.Location = new Point(48, 168);
            lblEmailExample.Name = "lblEmailExample";
            lblEmailExample.Size = new Size(216, 16);
            lblEmailExample.Text = "([email protected])";

            lblStatus.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            lblStatus.FlatStyle = FlatStyle.System;
            lblStatus.Name = "lblStatus";
            lblStatus.Text = "";
            lblStatus.TextAlign = ContentAlignment.MiddleCenter;
            lblStatus.Size = new Size(309, 56);
            lblStatus.Location = new Point(3, 165);

            //
            // SoapboxLoginControl
            //
            Controls.Add(linkLabelCreateMicrosoftAccountID);
            Controls.Add(linkLabelPrivacy);
            Controls.Add(lblEmailExample);
            Controls.Add(ckBoxSavePassword);
            Controls.Add(pictureBoxLogo);
            Controls.Add(lblUsername);
            Controls.Add(txtUsername);
            Controls.Add(lblPassword);
            Controls.Add(txtPassword);
            Controls.Add(btnLogin);
            Controls.Add(lblStatus);
            Name = "SoapboxLoginControl";
            Size = new Size(322, 399);
            Controls.SetChildIndex(btnLogin, 0);
            Controls.SetChildIndex(txtPassword, 0);
            Controls.SetChildIndex(lblPassword, 0);
            Controls.SetChildIndex(txtUsername, 0);
            Controls.SetChildIndex(lblUsername, 0);
            Controls.SetChildIndex(pictureBoxLogo, 0);
            Controls.SetChildIndex(ckBoxSavePassword, 0);
            Controls.SetChildIndex(lblEmailExample, 0);
            Controls.SetChildIndex(linkLabelPrivacy, 0);
            Controls.SetChildIndex(linkLabelCreateMicrosoftAccountID, 0);
            Controls.SetChildIndex(lblStatus, 0);
            ResumeLayout(false);
        }
Beispiel #2
0
        private void InitializeComponent()
        {
            lblUsername       = new Label();
            txtUsername       = new TextBoxOrComboBox();
            lblPassword       = new Label();
            lblStatus         = new Label();
            txtPassword       = new TextBox();
            btnLogin          = new Button();
            pictureBoxLogo    = new PictureBox();
            ckBoxSavePassword = new CheckBox();
            lblEmailExample   = new Label();
            linkLabelCreateMicrosoftAccountID = new LinkLabel();
            linkLabelPrivacy = new LinkLabel();
            SuspendLayout();
            //
            // lblUsername
            //
            lblUsername.Location = new Point(48, 126);
            lblUsername.Name     = "lblUsername";
            lblUsername.Size     = new Size(216, 18);
            lblUsername.TabIndex = 7;
            lblUsername.Text     = "&Microsoft Account ID:";
            lblUsername.Anchor   = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                                    | AnchorStyles.Right)));
            //
            // txtUsername
            //
            txtUsername.Location = new Point(48, 144);
            txtUsername.Name     = "txtUsername";
            txtUsername.Size     = new Size(216, 23);
            txtUsername.TabIndex = 8;
            txtUsername.Anchor   = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                                    | AnchorStyles.Right)));

            //
            // lblPassword
            //
            lblPassword.Location = new Point(48, 190);
            lblPassword.Name     = "lblPassword";
            lblPassword.Size     = new Size(216, 18);
            lblPassword.TabIndex = 9;
            lblPassword.Text     = "&Password:"******"linkLabelCreateMicrosoftAccountID";
            linkLabelCreateMicrosoftAccountID.Size         = new Size(216, 40);
            linkLabelCreateMicrosoftAccountID.Text         = "Create Microsoft Account ID";
            linkLabelCreateMicrosoftAccountID.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelCreateMicrosoftAccountID_LinkClicked);
            linkLabelCreateMicrosoftAccountID.Visible      = false;
            linkLabelCreateMicrosoftAccountID.TabIndex     = 13;
            //
            // linkLabelPrivacy
            //
            linkLabelPrivacy.Location     = new Point(48, 140);
            linkLabelPrivacy.Name         = "linkLabelPrivacy";
            linkLabelPrivacy.Size         = new Size(216, 40);
            linkLabelPrivacy.Text         = "Privacy Policy";
            linkLabelPrivacy.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelPrivacy_LinkClicked);
            linkLabelPrivacy.Visible      = false;
            linkLabelCreateMicrosoftAccountID.TabIndex = 14;

            //
            // txtPassword
            //
            txtPassword.Location     = new Point(48, 208);
            txtPassword.Name         = "txtPassword";
            txtPassword.PasswordChar = '*';
            txtPassword.Size         = new Size(216, 20);
            txtPassword.TabIndex     = 10;
            txtPassword.Text         = "";
            txtPassword.Anchor       = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                                        | AnchorStyles.Right)));
            //
            // btnLogin
            //
            btnLogin.FlatStyle = FlatStyle.System;
            btnLogin.Location  = new Point(189, 256);
            btnLogin.Name      = "btnLogin";
            btnLogin.TabIndex  = 20;
            btnLogin.Text      = "&Login";
            btnLogin.Click    += new EventHandler(btnLogin_Click);
            btnLogin.Anchor    = ((AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right));
            //
            // pictureBoxLogo
            //
            pictureBoxLogo.Location    = new Point(48, 40);
            pictureBoxLogo.Name        = "pictureBoxLogo";
            pictureBoxLogo.Size        = new Size(216, 50);
            pictureBoxLogo.TabStop     = false;
            pictureBoxLogo.Click      += new EventHandler(pictureBox1_Click);
            pictureBoxLogo.MouseEnter += new EventHandler(pictureBox1_MouseEnter);
            pictureBoxLogo.MouseLeave += new EventHandler(pictureBox1_MouseLeave);
            //
            // ckBoxSavePassword
            //
            ckBoxSavePassword.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                                        )));
            ckBoxSavePassword.FlatStyle = FlatStyle.System;
            ckBoxSavePassword.Location  = new Point(50, 232);
            ckBoxSavePassword.Name      = "ckBoxSavePassword";
            ckBoxSavePassword.Size      = new Size(216, 16);
            ckBoxSavePassword.TabIndex  = 11;
            ckBoxSavePassword.Text      = "Remember my &password";
            //
            // lblEmailExample
            //
            lblEmailExample.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right)
                                                      )));
            lblEmailExample.ForeColor = SystemColors.ControlDarkDark;
            lblEmailExample.FlatStyle = FlatStyle.System;
            lblEmailExample.Location  = new Point(48, 168);
            lblEmailExample.Name      = "lblEmailExample";
            lblEmailExample.Size      = new Size(216, 16);
            lblEmailExample.Text      = "([email protected])";

            lblStatus.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            lblStatus.FlatStyle = FlatStyle.System;
            lblStatus.Name      = "lblStatus";
            lblStatus.Text      = "";
            lblStatus.TextAlign = ContentAlignment.MiddleCenter;
            lblStatus.Size      = new Size(309, 56);
            lblStatus.Location  = new Point(3, 165);

            //
            // SoapboxLoginControl
            //
            Controls.Add(linkLabelCreateMicrosoftAccountID);
            Controls.Add(linkLabelPrivacy);
            Controls.Add(lblEmailExample);
            Controls.Add(ckBoxSavePassword);
            Controls.Add(pictureBoxLogo);
            Controls.Add(lblUsername);
            Controls.Add(txtUsername);
            Controls.Add(lblPassword);
            Controls.Add(txtPassword);
            Controls.Add(btnLogin);
            Controls.Add(lblStatus);
            Name = "SoapboxLoginControl";
            Size = new Size(322, 399);
            Controls.SetChildIndex(btnLogin, 0);
            Controls.SetChildIndex(txtPassword, 0);
            Controls.SetChildIndex(lblPassword, 0);
            Controls.SetChildIndex(txtUsername, 0);
            Controls.SetChildIndex(lblUsername, 0);
            Controls.SetChildIndex(pictureBoxLogo, 0);
            Controls.SetChildIndex(ckBoxSavePassword, 0);
            Controls.SetChildIndex(lblEmailExample, 0);
            Controls.SetChildIndex(linkLabelPrivacy, 0);
            Controls.SetChildIndex(linkLabelCreateMicrosoftAccountID, 0);
            Controls.SetChildIndex(lblStatus, 0);
            ResumeLayout(false);
        }