📄 solutionexplorer.cs
字号:
namespace Codematic
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class SolutionExplorer : Form
{
private IContainer components;
private ToolStrip toolStrip1;
private ToolStripButton toolStripButton1;
private ToolStripButton toolStripButton2;
private ToolStripButton toolStripButton3;
private ToolStripButton toolStripButton4;
private ToolStripSeparator toolStripSeparator1;
private ToolStripSeparator toolStripSeparator2;
private ImageList treeImgs;
private TreeView treeView1;
public SolutionExplorer()
{
this.InitializeComponent();
this.treeView1.ExpandAll();
this.treeView1.Scrollable = true;
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new Container();
TreeNode node = new TreeNode("引用", 2, 3);
TreeNode node2 = new TreeNode("AssemblyInfo.cs", 4, 4);
TreeNode node3 = new TreeNode("test", 4, 4);
TreeNode node4 = new TreeNode("ExamForm.cs", 2, 3, new TreeNode[] { node3 });
TreeNode node5 = new TreeNode("Exam", 1, 1, new TreeNode[] { node, node2, node4 });
TreeNode node6 = new TreeNode("解决方案“Exam”(1项目)", 0, 0, new TreeNode[] { node5 });
ComponentResourceManager manager = new ComponentResourceManager(typeof(SolutionExplorer));
this.treeView1 = new TreeView();
this.treeImgs = new ImageList(this.components);
this.toolStrip1 = new ToolStrip();
this.toolStripButton1 = new ToolStripButton();
this.toolStripSeparator1 = new ToolStripSeparator();
this.toolStripButton2 = new ToolStripButton();
this.toolStripButton3 = new ToolStripButton();
this.toolStripSeparator2 = new ToolStripSeparator();
this.toolStripButton4 = new ToolStripButton();
this.toolStrip1.SuspendLayout();
base.SuspendLayout();
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, 0x19);
this.treeView1.Name = "treeView1";
node.ImageIndex = 2;
node.Name = "";
node.SelectedImageIndex = 3;
node.Text = "引用";
node2.ImageIndex = 4;
node2.Name = "";
node2.SelectedImageIndex = 4;
node2.Text = "AssemblyInfo.cs";
node3.ImageIndex = 4;
node3.Name = "test";
node3.SelectedImageIndex = 4;
node3.Text = "test";
node4.ImageIndex = 2;
node4.Name = "";
node4.SelectedImageIndex = 3;
node4.Text = "ExamForm.cs";
node5.ImageIndex = 1;
node5.Name = "";
node5.SelectedImageIndex = 1;
node5.Text = "Exam";
node6.ImageIndex = 0;
node6.Name = "";
node6.SelectedImageIndex = 0;
node6.Text = "解决方案“Exam”(1项目)";
this.treeView1.Nodes.AddRange(new TreeNode[] { node6 });
this.treeView1.SelectedImageIndex = 0;
this.treeView1.ShowRootLines = false;
this.treeView1.Size = new Size(0xd4, 0xf1);
this.treeView1.TabIndex = 1;
this.treeImgs.ImageStream = (ImageListStreamer) manager.GetObject("treeImgs.ImageStream");
this.treeImgs.TransparentColor = Color.Transparent;
this.treeImgs.Images.SetKeyName(0, "sln.ico");
this.treeImgs.Images.SetKeyName(1, "csproj.ico");
this.treeImgs.Images.SetKeyName(2, "Folderclose.gif");
this.treeImgs.Images.SetKeyName(3, "Folderopen.gif");
this.treeImgs.Images.SetKeyName(4, "cs.gif");
this.toolStrip1.BackgroundImage = (Image) manager.GetObject("toolStrip1.BackgroundImage");
this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripButton1, this.toolStripSeparator1, this.toolStripButton2, this.toolStripButton3, this.toolStripSeparator2, this.toolStripButton4 });
this.toolStrip1.Location = new Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new Size(0xd4, 0x19);
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, 0x16);
this.toolStripButton1.Text = "toolStripButton1";
this.toolStripButton1.ToolTipText = "属性";
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new Size(6, 0x19);
this.toolStripButton2.DisplayStyle = ToolStripItemDisplayStyle.Image;
this.toolStripButton2.Image = (Image) manager.GetObject("toolStripButton2.Image");
this.toolStripButton2.ImageScaling = ToolStripItemImageScaling.None;
this.toolStripButton2.ImageTransparentColor = Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new Size(0x17, 0x16);
this.toolStripButton2.Text = "toolStripButton2";
this.toolStripButton2.ToolTipText = "显示所有文件";
this.toolStripButton3.DisplayStyle = ToolStripItemDisplayStyle.Image;
this.toolStripButton3.Image = (Image) manager.GetObject("toolStripButton3.Image");
this.toolStripButton3.ImageScaling = ToolStripItemImageScaling.None;
this.toolStripButton3.ImageTransparentColor = Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new Size(0x17, 0x16);
this.toolStripButton3.Text = "toolStripButton3";
this.toolStripButton3.ToolTipText = "刷新";
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new Size(6, 0x19);
this.toolStripButton4.DisplayStyle = ToolStripItemDisplayStyle.Image;
this.toolStripButton4.Image = (Image) manager.GetObject("toolStripButton4.Image");
this.toolStripButton4.ImageScaling = ToolStripItemImageScaling.None;
this.toolStripButton4.ImageTransparentColor = Color.Magenta;
this.toolStripButton4.Name = "toolStripButton4";
this.toolStripButton4.Size = new Size(0x17, 0x16);
this.toolStripButton4.Text = "toolStripButton4";
this.toolStripButton4.ToolTipText = "查看代码";
this.AutoScaleBaseSize = new Size(6, 14);
this.AutoScroll = true;
base.ClientSize = new Size(0xd4, 0x10a);
base.Controls.Add(this.treeView1);
base.Controls.Add(this.toolStrip1);
base.Name = "SolutionExplorer";
this.Text = "SolutionExplorer";
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -