⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classview.cs

📁 通过数据库结构自动 生成三层结构代码,相当不错的一款软件
💻 CS
字号:
namespace Codematic
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class ClassView : Form
    {
        private IContainer components;
        private ImageList toolBarImgs;
        private ToolStrip toolStrip1;
        private ToolStripButton toolStripButton1;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripSplitButton toolStripSplitButton1;
        private ImageList treeImgs;
        private TreeView treeView1;

        public ClassView()
        {
            this.InitializeComponent();
            this.treeView1.ExpandAll();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(ClassView));
            TreeNode node = new TreeNode("ExamForm", 2, 2);
            TreeNode node2 = new TreeNode("节点0", 3, 3);
            TreeNode node3 = new TreeNode("Exam", 1, 1, new TreeNode[] { node, node2 });
            TreeNode node4 = new TreeNode("Exam", 0, 0, new TreeNode[] { node3 });
            this.toolBarImgs = new ImageList(this.components);
            this.treeView1 = new TreeView();
            this.treeImgs = new ImageList(this.components);
            this.toolStrip1 = new ToolStrip();
            this.toolStripButton1 = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.toolStripSplitButton1 = new ToolStripSplitButton();
            this.toolStrip1.SuspendLayout();
            base.SuspendLayout();
            this.toolBarImgs.ImageStream = (ImageListStreamer) manager.GetObject("toolBarImgs.ImageStream");
            this.toolBarImgs.TransparentColor = Color.Transparent;
            this.toolBarImgs.Images.SetKeyName(0, "classf.gif");
            this.toolBarImgs.Images.SetKeyName(1, "cn.gif");
            this.treeView1.BorderStyle = BorderStyle.FixedSingle;
            this.treeView1.Dock = DockStyle.Fill;
            this.treeView1.ImageIndex = 0;
            this.treeView1.ImageList = this.treeImgs;
            this.treeView1.Location = new Point(0, 0x1a);
            this.treeView1.Name = "treeView1";
            node.ImageIndex = 2;
            node.Name = "";
            node.SelectedImageIndex = 2;
            node.Text = "ExamForm";
            node2.ImageIndex = 3;
            node2.Name = "节点0";
            node2.SelectedImageIndex = 3;
            node2.Text = "节点0";
            node3.ImageIndex = 1;
            node3.Name = "";
            node3.SelectedImageIndex = 1;
            node3.Text = "Exam";
            node4.ImageIndex = 0;
            node4.Name = "";
            node4.SelectedImageIndex = 0;
            node4.Text = "Exam";
            this.treeView1.Nodes.AddRange(new TreeNode[] { node4 });
            this.treeView1.SelectedImageIndex = 0;
            this.treeView1.Size = new Size(0xd4, 240);
            this.treeView1.TabIndex = 1;
            this.treeImgs.ImageStream = (ImageListStreamer) manager.GetObject("treeImgs.ImageStream");
            this.treeImgs.TransparentColor = Color.Transparent;
            this.treeImgs.Images.SetKeyName(0, "csproj.ico");
            this.treeImgs.Images.SetKeyName(1, "k.gif");
            this.treeImgs.Images.SetKeyName(2, "class.gif");
            this.treeImgs.Images.SetKeyName(3, "interface.gif");
            this.toolStrip1.BackgroundImage = (Image) manager.GetObject("toolStrip1.BackgroundImage");
            this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripButton1, this.toolStripSeparator1, this.toolStripSplitButton1 });
            this.toolStrip1.Location = new Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new Size(0xd4, 0x1a);
            this.toolStrip1.TabIndex = 2;
            this.toolStrip1.Text = "toolStrip1";
            this.toolStripButton1.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image = (Image) manager.GetObject("toolStripButton1.Image");
            this.toolStripButton1.ImageScaling = ToolStripItemImageScaling.None;
            this.toolStripButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new Size(0x17, 0x17);
            this.toolStripButton1.Text = "toolStripButton1";
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new Size(6, 0x1a);
            this.toolStripSplitButton1.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.toolStripSplitButton1.Image = (Image) manager.GetObject("toolStripSplitButton1.Image");
            this.toolStripSplitButton1.ImageScaling = ToolStripItemImageScaling.None;
            this.toolStripSplitButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripSplitButton1.Name = "toolStripSplitButton1";
            this.toolStripSplitButton1.Size = new Size(0x23, 0x17);
            this.toolStripSplitButton1.Text = "toolStripSplitButton1";
            this.AutoScaleBaseSize = new Size(6, 14);
            base.ClientSize = new Size(0xd4, 0x10a);
            base.Controls.Add(this.treeView1);
            base.Controls.Add(this.toolStrip1);
            base.Name = "ClassView";
            this.Text = "ClassView";
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -