Beispiel #1
0
        private void CreateRetryCancleButton()
        {
            QQButton button  = new QQButton();
            QQButton button2 = new QQButton();

            base.SuspendLayout();
            button.Font     = new Font("微软雅黑", 9f);
            button.Location = new Point(0xb3, 0x7d);
            button.Name     = "retryBtn";
            button.Size     = new Size(0x44, 0x17);
            button.TabIndex = 0;
            button.Text     = "重试";
            button.UseVisualStyleBackColor = true;
            button.Click    += new EventHandler(this.RetryBtn_Click);
            button2.Font     = new Font("微软雅黑", 9f);
            button2.Location = new Point(260, 0x7d);
            button2.Name     = "cancleBtn";
            button2.Size     = new Size(0x44, 0x17);
            button2.TabIndex = 1;
            button2.Text     = "取消";
            button2.UseVisualStyleBackColor = true;
            button2.Click += new EventHandler(this.CancelBtn_Click);
            base.Controls.Add(button);
            base.Controls.Add(button2);
            base.AcceptButton = button;
            base.ResumeLayout();
        }
Beispiel #2
0
        private void CreateOKButton()
        {
            QQButton button = new QQButton();

            base.SuspendLayout();
            button.Font     = new Font("微软雅黑", 9f);
            button.Location = new Point(260, 0x7d);
            button.Name     = "OKBtn";
            button.Size     = new Size(0x44, 0x17);
            button.TabIndex = 0;
            button.Text     = "确定";
            button.UseVisualStyleBackColor = true;
            button.Click += new EventHandler(this.OKBtn_Click);
            base.Controls.Add(button);
            base.AcceptButton = button;
            base.ResumeLayout();
        }