예제 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(chooseIn));
     this.label1   = new System.Windows.Forms.Label();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.Con      = new Information_Home_PC.VistaButton();
     this.Skip     = new Information_Home_PC.VistaButton();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Font      = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label1.ForeColor = System.Drawing.Color.Transparent;
     this.label1.Location  = new System.Drawing.Point(12, 46);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(138, 22);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "请输入大厅地址:";
     //
     // textBox1
     //
     this.textBox1.BackColor = System.Drawing.Color.DeepSkyBlue;
     this.textBox1.ForeColor = System.Drawing.Color.Transparent;
     this.textBox1.Location  = new System.Drawing.Point(157, 46);
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(157, 21);
     this.textBox1.TabIndex  = 1;
     //
     // Con
     //
     this.Con.BackColor   = System.Drawing.Color.Transparent;
     this.Con.BaseColor   = System.Drawing.Color.Transparent;
     this.Con.ButtonColor = System.Drawing.SystemColors.Highlight;
     this.Con.ButtonText  = "连接";
     this.Con.Font        = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Con.GlowColor   = System.Drawing.Color.White;
     this.Con.Location    = new System.Drawing.Point(12, 97);
     this.Con.Name        = "Con";
     this.Con.Size        = new System.Drawing.Size(125, 41);
     this.Con.TabIndex    = 0;
     this.Con.Click      += new System.EventHandler(this.Con_Click);
     //
     // Skip
     //
     this.Skip.BackColor   = System.Drawing.Color.Transparent;
     this.Skip.BaseColor   = System.Drawing.Color.Transparent;
     this.Skip.ButtonColor = System.Drawing.SystemColors.Highlight;
     this.Skip.ButtonText  = "跳过";
     this.Skip.Font        = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Skip.GlowColor   = System.Drawing.Color.White;
     this.Skip.Location    = new System.Drawing.Point(189, 97);
     this.Skip.Name        = "Skip";
     this.Skip.Size        = new System.Drawing.Size(125, 41);
     this.Skip.TabIndex    = 0;
     this.Skip.Click      += new System.EventHandler(this.Skip_Click);
     //
     // chooseIn
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.DeepSkyBlue;
     this.ClientSize          = new System.Drawing.Size(326, 176);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.Con);
     this.Controls.Add(this.Skip);
     this.Controls.Add(this.label1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MaximumSize   = new System.Drawing.Size(342, 215);
     this.MinimizeBox   = false;
     this.MinimumSize   = new System.Drawing.Size(342, 215);
     this.Name          = "chooseIn";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "chooseIn";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #2
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HomePage));
            this.notifyContextMenu = new System.Windows.Forms.ContextMenu();
            this.jianbian          = new System.Windows.Forms.Timer(this.components);
            this.share             = new Information_Home_PC.VistaButton();
            this.roundedCorners    = new Information_Home_PC.VistaButton();
            this.sharpCorners      = new Information_Home_PC.VistaButton();
            this.min           = new Information_Home_PC.VistaButton();
            this.close         = new Information_Home_PC.VistaButton();
            this.notifyIcon    = new System.Windows.Forms.NotifyIcon(this.components);
            this.notifyiconMnu = new System.Windows.Forms.ContextMenu();
            this.listView1     = new System.Windows.Forms.ListView();
            this.UserIP        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.UserName      = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ShowMess      = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // jianbian
            //
            this.jianbian.Tick += new System.EventHandler(this.jianbian_Tick);
            //
            // share
            //
            this.share.BackColor   = System.Drawing.Color.Transparent;
            this.share.BaseColor   = System.Drawing.Color.Transparent;
            this.share.ButtonColor = System.Drawing.Color.LimeGreen;
            this.share.ButtonText  = "内容分享";
            this.share.ForeColor   = System.Drawing.Color.DimGray;
            this.share.GlowColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(189)))), ((int)(((byte)(141)))));
            resources.ApplyResources(this.share, "share");
            this.share.Name   = "share";
            this.share.Click += new System.EventHandler(this.share_Click);
            //
            // roundedCorners
            //
            this.roundedCorners.BackColor    = System.Drawing.Color.Transparent;
            this.roundedCorners.BaseColor    = System.Drawing.Color.Transparent;
            this.roundedCorners.ButtonColor  = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(211)))), ((int)(((byte)(40)))));
            this.roundedCorners.ButtonText   = "Rounded Corners";
            this.roundedCorners.CornerRadius = 20;
            this.roundedCorners.GlowColor    = System.Drawing.Color.FromArgb(((int)(((byte)(141)))), ((int)(((byte)(255)))), ((int)(((byte)(189)))));
            resources.ApplyResources(this.roundedCorners, "roundedCorners");
            this.roundedCorners.Name = "roundedCorners";
            //
            // sharpCorners
            //
            this.sharpCorners.BackColor    = System.Drawing.Color.Transparent;
            this.sharpCorners.BaseColor    = System.Drawing.Color.Transparent;
            this.sharpCorners.ButtonColor  = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.sharpCorners.ButtonText   = "Sharp Corners";
            this.sharpCorners.CornerRadius = 0;
            this.sharpCorners.GlowColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(141)))), ((int)(((byte)(189)))));
            resources.ApplyResources(this.sharpCorners, "sharpCorners");
            this.sharpCorners.Name = "sharpCorners";
            //
            // min
            //
            this.min.BackColor   = System.Drawing.Color.Transparent;
            this.min.BaseColor   = System.Drawing.Color.Transparent;
            this.min.ButtonColor = System.Drawing.Color.Blue;
            this.min.ButtonStyle = Information_Home_PC.VistaButton.Style.Flat;
            this.min.ButtonText  = null;
            resources.ApplyResources(this.min, "min");
            this.min.Name   = "min";
            this.min.Click += new System.EventHandler(this.min_Click);
            //
            // close
            //
            this.close.BackColor   = System.Drawing.Color.Transparent;
            this.close.BaseColor   = System.Drawing.Color.Transparent;
            this.close.ButtonColor = System.Drawing.Color.Red;
            this.close.ButtonStyle = Information_Home_PC.VistaButton.Style.Flat;
            this.close.ButtonText  = null;
            resources.ApplyResources(this.close, "close");
            this.close.Name   = "close";
            this.close.Click += new System.EventHandler(this.close_Click);
            //
            // notifyIcon
            //
            this.ico             = new Icon(@"Images/Down_ico.ico"); // 创建托盘图标对象
            this.notifyIcon.Icon = ico;
            resources.ApplyResources(this.notifyIcon, "notifyIcon");
            this.notifyIcon.Text    = "Information Home";
            this.notifyIcon.Visible = true;
            this.notifyIcon.Click  += new System.EventHandler(this.notifyIcon_Click);
            MenuItem[] mnuItms = new MenuItem[3];
            mnuItms[0]             = new MenuItem();
            mnuItms[0].Text        = "打开软件";
            mnuItms[0].Click      += new System.EventHandler(this.notifyIcon_Click);
            mnuItms[1]             = new MenuItem("-");
            mnuItms[2]             = new MenuItem();
            mnuItms[2].Text        = "退出软件";
            mnuItms[2].Click      += new System.EventHandler(this.close_Click);
            mnuItms[2].DefaultItem = true;
            ContextMenu notifyiconMnu = new ContextMenu(mnuItms);

            this.notifyIcon.ContextMenu = notifyiconMnu;
            //
            // listView1
            //
            this.listView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(200)))), ((int)(((byte)(255)))));
            this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                this.UserIP,
                this.UserName
            });
            resources.ApplyResources(this.listView1, "listView1");
            this.listView1.Name = "listView1";
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View = System.Windows.Forms.View.Details;
            //
            // UserIP
            //
            resources.ApplyResources(this.UserIP, "UserIP");
            //
            // UserName
            //
            resources.ApplyResources(this.UserName, "UserName");
            //
            // ShowMess
            //
            resources.ApplyResources(this.ShowMess, "ShowMess");
            this.ShowMess.BackColor = System.Drawing.Color.Transparent;
            this.ShowMess.ForeColor = System.Drawing.Color.Transparent;
            this.ShowMess.Name      = "ShowMess";
            //
            // HomePage
            //
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
            resources.ApplyResources(this, "$this");
            this.Controls.Add(this.ShowMess);
            this.Controls.Add(this.listView1);
            this.Controls.Add(this.min);
            this.Controls.Add(this.close);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "HomePage";
            this.Icon            = new Icon(@"Images/Down_ico.ico");
            this.BackgroundImage = (Image)(new Bitmap(@"Images/MainImage.png"));
            this.SetShadow();
            this.Load    += new System.EventHandler(this.Formdonghua_Load);
            this.Location = new Point(SystemInformation.PrimaryMonitorSize.Width - this.Width - 50,
                                      SystemInformation.PrimaryMonitorSize.Height / 5);
            this.Load += new System.EventHandler(this.HomePage_Load);
            this.ResumeLayout(false);
            this.PerformLayout();
        }