Пример #1
0
        private void MainApp_Load(object sender, EventArgs e)
        {
            this.CloseNormlBack = photoApp.Properties.Resources.btn_close_disable;
            this.MiniNormlBack  = photoApp.Properties.Resources.btn_mini_normal;

            this.BorderPalace   = photoApp.Properties.Resources.BackPalace;
            this.SysBottomNorml = photoApp.Properties.Resources.btn_set_normal;

            this.BackColor = ColorTranslator.FromHtml("#EBF2F9");


            int y = 0;
            int z = 0;

            for (int i = 1; i <= 20; i++)
            {
                xingwaWinFormUI.SkinControl.SkinPanel imgIcoDiv = new xingwaWinFormUI.SkinControl.SkinPanel();
                imgIcoDiv.BackColor    = System.Drawing.Color.Gray;
                imgIcoDiv.ControlState = xingwaWinFormUI.SkinClass.ControlState.Normal;
                imgIcoDiv.DownBack     = null;
                imgIcoDiv.Location     = new System.Drawing.Point(0, 0);
                imgIcoDiv.MouseBack    = null;
                imgIcoDiv.Name         = "imgIco";
                imgIcoDiv.Tag          = i;
                imgIcoDiv.NormlBack    = null;
                imgIcoDiv.Radius       = 2;
                imgIcoDiv.Size         = new System.Drawing.Size(55, 45);
                imgIcoDiv.TabIndex     = 1;
                imgIcoDiv.Click       += ImgIcoDiv_Click;
                //
                // labelText
                //
                xingwaWinFormUI.SkinControl.SkinLabel labelTextFont = new xingwaWinFormUI.SkinControl.SkinLabel();
                labelTextFont.AutoSize    = true;
                labelTextFont.BackColor   = System.Drawing.Color.Transparent;
                labelTextFont.BorderColor = System.Drawing.Color.Transparent;
                labelTextFont.Font        = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                labelTextFont.Location    = new System.Drawing.Point(0, 50);
                labelTextFont.Name        = "labelText";
                labelTextFont.TextAlign   = System.Drawing.ContentAlignment.TopCenter;
                labelTextFont.Size        = new System.Drawing.Size(55, 15);
                labelTextFont.TabIndex    = 2;
                labelTextFont.Text        = "数字家" + i;



                xingwaWinFormUI.SkinControl.SkinPanel icoDiv = new xingwaWinFormUI.SkinControl.SkinPanel();
                icoDiv.BackColor = System.Drawing.Color.Transparent;
                icoDiv.Controls.Add(labelTextFont);
                icoDiv.Controls.Add(imgIcoDiv);
                icoDiv.ControlState = xingwaWinFormUI.SkinClass.ControlState.Normal;
                icoDiv.DownBack     = null;
                z++;
                if (z % 5 == 0)
                {
                    y++;
                    icoDiv.Location = new System.Drawing.Point(12, 12 + y * 80);
                    z = 1;
                }
                else
                {
                    icoDiv.Location = new System.Drawing.Point(12 + (z - 1) * 65, 12 + y * 80);
                }

                icoDiv.MouseBack = null;
                icoDiv.Name      = "ico";
                icoDiv.NormlBack = null;
                icoDiv.Size      = new System.Drawing.Size(55, 75);
                icoDiv.TabIndex  = 0;

                this.tagIco.Controls.Add(icoDiv);
            }
        }
Пример #2
0
 private void InitializeComponent()
 {
     System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("节点1");
     System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("节点2");
     System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("节点3");
     System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("C2C买卖管理", new System.Windows.Forms.TreeNode[] {
         treeNode1,
         treeNode2,
         treeNode3
     });
     System.Windows.Forms.TreeNode treeNode5  = new System.Windows.Forms.TreeNode("节点5");
     System.Windows.Forms.TreeNode treeNode6  = new System.Windows.Forms.TreeNode("节点6");
     System.Windows.Forms.TreeNode treeNode7  = new System.Windows.Forms.TreeNode("节点7");
     System.Windows.Forms.TreeNode treeNode8  = new System.Windows.Forms.TreeNode("节点8");
     System.Windows.Forms.TreeNode treeNode9  = new System.Windows.Forms.TreeNode("节点9");
     System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("节点10");
     System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("节点4", new System.Windows.Forms.TreeNode[] {
         treeNode5,
         treeNode6,
         treeNode7,
         treeNode8,
         treeNode9,
         treeNode10
     });
     this.statusStripDiv        = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
     this.divMain             = new System.Windows.Forms.Panel();
     this.topDiv              = new DevComponents.DotNetBar.PanelEx();
     this.lineDiv             = new DevComponents.DotNetBar.Controls.Line();
     this.skinLabelName       = new xingwaWinFormUI.SkinControl.SkinLabel();
     this.symbolBox1          = new DevComponents.DotNetBar.Controls.SymbolBox();
     this.div                 = new System.Windows.Forms.Panel();
     this.panelEx3            = new DevComponents.DotNetBar.PanelEx();
     this.expandableSplitter1 = new DevComponents.DotNetBar.ExpandableSplitter();
     this.panelEx1            = new DevComponents.DotNetBar.PanelEx();
     this.panel1              = new System.Windows.Forms.Panel();
     this.treeView1           = new System.Windows.Forms.TreeView();
     this.statusStripDiv.SuspendLayout();
     this.divMain.SuspendLayout();
     this.topDiv.SuspendLayout();
     this.div.SuspendLayout();
     this.panelEx1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // statusStripDiv
     //
     this.statusStripDiv.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1
     });
     this.statusStripDiv.Location = new System.Drawing.Point(3, 743);
     this.statusStripDiv.Name     = "statusStripDiv";
     this.statusStripDiv.Size     = new System.Drawing.Size(1018, 22);
     this.statusStripDiv.TabIndex = 0;
     this.statusStripDiv.Text     = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.BackColor = System.Drawing.Color.Transparent;
     this.toolStripStatusLabel1.Name      = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size      = new System.Drawing.Size(186, 17);
     this.toolStripStatusLabel1.Text      = "现在时间:2018-05-04 13:22:10";
     //
     // divMain
     //
     this.divMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.divMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(235)))), ((int)(((byte)(247)))));
     this.divMain.Controls.Add(this.div);
     this.divMain.Location = new System.Drawing.Point(1, 66);
     this.divMain.Name     = "divMain";
     this.divMain.Size     = new System.Drawing.Size(1022, 677);
     this.divMain.TabIndex = 1;
     //
     // topDiv
     //
     this.topDiv.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.topDiv.CanvasColor      = System.Drawing.SystemColors.Control;
     this.topDiv.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.OfficeMobile2014;
     this.topDiv.Controls.Add(this.lineDiv);
     this.topDiv.Controls.Add(this.skinLabelName);
     this.topDiv.Controls.Add(this.symbolBox1);
     this.topDiv.DisabledBackColor = System.Drawing.Color.Empty;
     this.topDiv.Location          = new System.Drawing.Point(2, 23);
     this.topDiv.Name                            = "topDiv";
     this.topDiv.Size                            = new System.Drawing.Size(1019, 46);
     this.topDiv.Style.Alignment                 = System.Drawing.StringAlignment.Center;
     this.topDiv.Style.BackColor1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(49)))), ((int)(((byte)(150)))), ((int)(((byte)(178)))));
     this.topDiv.Style.BackColor2.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(206)))), ((int)(((byte)(219)))));
     this.topDiv.Style.BorderColor.Color         = System.Drawing.Color.Transparent;
     this.topDiv.Style.BorderWidth               = 0;
     this.topDiv.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.topDiv.Style.GradientAngle             = 90;
     this.topDiv.TabIndex                        = 2;
     this.topDiv.MouseDown                      += new System.Windows.Forms.MouseEventHandler(this.topDiv_MouseDown);
     //
     // lineDiv
     //
     this.lineDiv.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.lineDiv.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
     this.lineDiv.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(88)))), ((int)(((byte)(170)))), ((int)(((byte)(192)))));
     this.lineDiv.Location  = new System.Drawing.Point(-2, 41);
     this.lineDiv.Name      = "lineDiv";
     this.lineDiv.Size      = new System.Drawing.Size(1016, 3);
     this.lineDiv.TabIndex  = 3;
     //
     // skinLabelName
     //
     this.skinLabelName.AutoSize    = true;
     this.skinLabelName.BackColor   = System.Drawing.Color.Transparent;
     this.skinLabelName.BorderColor = System.Drawing.Color.Transparent;
     this.skinLabelName.Font        = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.skinLabelName.ForeColor   = System.Drawing.Color.White;
     this.skinLabelName.Location    = new System.Drawing.Point(32, 7);
     this.skinLabelName.Name        = "skinLabelName";
     this.skinLabelName.Size        = new System.Drawing.Size(140, 17);
     this.skinLabelName.TabIndex    = 1;
     this.skinLabelName.Text        = "欢迎您:成都新交所张三";
     this.skinLabelName.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.skinLabelName_MouseDown);
     //
     // symbolBox1
     //
     this.symbolBox1.BackColor = System.Drawing.Color.Transparent;
     //
     //
     //
     this.symbolBox1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.symbolBox1.Font        = new System.Drawing.Font("微软雅黑", 9F);
     this.symbolBox1.Location    = new System.Drawing.Point(2, 5);
     this.symbolBox1.Name        = "symbolBox1";
     this.symbolBox1.Size        = new System.Drawing.Size(34, 23);
     this.symbolBox1.Symbol      = "";
     this.symbolBox1.SymbolColor = System.Drawing.Color.GhostWhite;
     this.symbolBox1.TabIndex    = 2;
     this.symbolBox1.Text        = "symbolBox1";
     //
     // div
     //
     this.div.Controls.Add(this.panelEx3);
     this.div.Controls.Add(this.expandableSplitter1);
     this.div.Controls.Add(this.panelEx1);
     this.div.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.div.Location = new System.Drawing.Point(0, 0);
     this.div.Name     = "div";
     this.div.Size     = new System.Drawing.Size(1022, 677);
     this.div.TabIndex = 1;
     //
     // panelEx3
     //
     this.panelEx3.DisabledBackColor = System.Drawing.Color.Empty;
     this.panelEx3.Dock                              = System.Windows.Forms.DockStyle.Fill;
     this.panelEx3.Location                          = new System.Drawing.Point(157, 0);
     this.panelEx3.Name                              = "panelEx3";
     this.panelEx3.Size                              = new System.Drawing.Size(865, 677);
     this.panelEx3.Style.Alignment                   = System.Drawing.StringAlignment.Center;
     this.panelEx3.Style.BackColor1.Color            = System.Drawing.Color.White;
     this.panelEx3.Style.BackColor2.Color            = System.Drawing.Color.White;
     this.panelEx3.Style.BackgroundImagePosition     = DevComponents.DotNetBar.eBackgroundImagePosition.Tile;
     this.panelEx3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder;
     this.panelEx3.Style.ForeColor.ColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.ItemText;
     this.panelEx3.Style.GradientAngle               = 90;
     this.panelEx3.TabIndex                          = 2;
     this.panelEx3.Text                              = "Fill Panel";
     //
     // expandableSplitter1
     //
     this.expandableSplitter1.BackColor                    = System.Drawing.SystemColors.ControlLight;
     this.expandableSplitter1.BackColor2                   = System.Drawing.Color.Empty;
     this.expandableSplitter1.BackColor2SchemePart         = DevComponents.DotNetBar.eColorSchemePart.None;
     this.expandableSplitter1.BackColorSchemePart          = DevComponents.DotNetBar.eColorSchemePart.None;
     this.expandableSplitter1.ExpandableControl            = this.panelEx1;
     this.expandableSplitter1.ExpandFillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(181)))), ((int)(((byte)(226)))));
     this.expandableSplitter1.ExpandFillColorSchemePart    = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground;
     this.expandableSplitter1.ExpandLineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(111)))));
     this.expandableSplitter1.ExpandLineColorSchemePart    = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBorder;
     this.expandableSplitter1.ForeColor                    = System.Drawing.Color.Black;
     this.expandableSplitter1.GripDarkColor                = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(111)))));
     this.expandableSplitter1.GripDarkColorSchemePart      = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBorder;
     this.expandableSplitter1.GripLightColor               = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(249)))));
     this.expandableSplitter1.GripLightColorSchemePart     = DevComponents.DotNetBar.eColorSchemePart.MenuBackground;
     this.expandableSplitter1.HotBackColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(230)))), ((int)(((byte)(232)))));
     this.expandableSplitter1.HotBackColor2                = System.Drawing.Color.Empty;
     this.expandableSplitter1.HotBackColor2SchemePart      = DevComponents.DotNetBar.eColorSchemePart.None;
     this.expandableSplitter1.HotBackColorSchemePart       = DevComponents.DotNetBar.eColorSchemePart.ItemCheckedBackground;
     this.expandableSplitter1.HotExpandFillColor           = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(181)))), ((int)(((byte)(226)))));
     this.expandableSplitter1.HotExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground;
     this.expandableSplitter1.HotExpandLineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(111)))));
     this.expandableSplitter1.HotExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBorder;
     this.expandableSplitter1.HotGripDarkColor             = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(111)))));
     this.expandableSplitter1.HotGripDarkColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBorder;
     this.expandableSplitter1.HotGripLightColor            = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(249)))));
     this.expandableSplitter1.HotGripLightColorSchemePart  = DevComponents.DotNetBar.eColorSchemePart.MenuBackground;
     this.expandableSplitter1.Location = new System.Drawing.Point(152, 0);
     this.expandableSplitter1.MinExtra = 10;
     this.expandableSplitter1.MinSize  = 5;
     this.expandableSplitter1.Name     = "expandableSplitter1";
     this.expandableSplitter1.Size     = new System.Drawing.Size(5, 677);
     this.expandableSplitter1.Style    = DevComponents.DotNetBar.eSplitterStyle.Mozilla;
     this.expandableSplitter1.TabIndex = 400;
     this.expandableSplitter1.TabStop  = false;
     //
     // panelEx1
     //
     this.panelEx1.Controls.Add(this.panel1);
     this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
     this.panelEx1.Dock                              = System.Windows.Forms.DockStyle.Left;
     this.panelEx1.Location                          = new System.Drawing.Point(0, 0);
     this.panelEx1.Name                              = "panelEx1";
     this.panelEx1.Size                              = new System.Drawing.Size(152, 677);
     this.panelEx1.Style.Alignment                   = System.Drawing.StringAlignment.Center;
     this.panelEx1.Style.BackColor1.Color            = System.Drawing.Color.White;
     this.panelEx1.Style.BackColor2.Color            = System.Drawing.Color.White;
     this.panelEx1.Style.BackgroundImagePosition     = DevComponents.DotNetBar.eBackgroundImagePosition.Tile;
     this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder;
     this.panelEx1.Style.ForeColor.ColorSchemePart   = DevComponents.DotNetBar.eColorSchemePart.ItemText;
     this.panelEx1.Style.GradientAngle               = 90;
     this.panelEx1.Style.WordWrap                    = true;
     this.panelEx1.TabIndex                          = 0;
     this.panelEx1.Text                              = "Click to collapse12";
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.Controls.Add(this.treeView1);
     this.panel1.Location = new System.Drawing.Point(3, 7);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(146, 667);
     this.panel1.TabIndex = 0;
     //
     // treeView1
     //
     this.treeView1.BackColor   = System.Drawing.Color.White;
     this.treeView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.treeView1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.Font        = new System.Drawing.Font("微软雅黑", 9F);
     this.treeView1.Location    = new System.Drawing.Point(0, 0);
     this.treeView1.Name        = "treeView1";
     treeNode1.Name             = "节点1";
     treeNode1.Text             = "节点1";
     treeNode2.Name             = "节点2";
     treeNode2.Text             = "节点2";
     treeNode3.Name             = "节点3";
     treeNode3.Text             = "节点3";
     treeNode4.Name             = "节点0";
     treeNode4.Text             = "C2C买卖管理";
     treeNode5.Name             = "节点5";
     treeNode5.Text             = "节点5";
     treeNode6.Name             = "节点6";
     treeNode6.Text             = "节点6";
     treeNode7.Name             = "节点7";
     treeNode7.Text             = "节点7";
     treeNode8.Name             = "节点8";
     treeNode8.Text             = "节点8";
     treeNode9.Name             = "节点9";
     treeNode9.Text             = "节点9";
     treeNode10.Name            = "节点10";
     treeNode10.Text            = "节点10";
     treeNode11.Name            = "节点4";
     treeNode11.Text            = "节点4";
     this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
         treeNode4,
         treeNode11
     });
     this.treeView1.ShowNodeToolTips = true;
     this.treeView1.Size             = new System.Drawing.Size(146, 667);
     this.treeView1.TabIndex         = 1;
     //
     // backend
     //
     this.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(49)))), ((int)(((byte)(150)))), ((int)(((byte)(178)))));
     this.ClientSize = new System.Drawing.Size(1024, 768);
     this.Controls.Add(this.topDiv);
     this.Controls.Add(this.divMain);
     this.Controls.Add(this.statusStripDiv);
     this.Name          = "backend";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "测试系统";
     this.statusStripDiv.ResumeLayout(false);
     this.statusStripDiv.PerformLayout();
     this.divMain.ResumeLayout(false);
     this.topDiv.ResumeLayout(false);
     this.topDiv.PerformLayout();
     this.div.ResumeLayout(false);
     this.panelEx1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }