📄 form1.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace 图形编辑
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton toolBarButton1;
private System.Windows.Forms.ToolBarButton toolBarButton2;
private System.Windows.Forms.ToolBarButton toolBarButton3;
private System.Windows.Forms.ToolBarButton toolBarButton4;
private System.Windows.Forms.ToolBarButton toolBarButton5;
private System.Windows.Forms.ToolBarButton toolBarButton6;
private System.Windows.Forms.ToolBarButton toolBarButton7;
private System.Windows.Forms.ToolBarButton toolBarButton8;
private System.Windows.Forms.ToolBarButton toolBarButton9;
private System.Windows.Forms.ToolBarButton toolBarButton10;
private System.Windows.Forms.ToolBarButton toolBarButton11;
private System.Windows.Forms.ToolBarButton toolBarButton12;
private System.Windows.Forms.ToolBarButton toolBarButton13;
private System.Windows.Forms.ToolBarButton toolBarButton14;
private System.Windows.Forms.ToolBarButton toolBarButton15;
private System.Windows.Forms.ToolBarButton toolBarButton16;
private System.Windows.Forms.ToolBarButton toolBarButton17;
private System.Windows.Forms.ToolBarButton toolBarButton18;
private System.Windows.Forms.ToolBarButton toolBarButton19;
private System.Windows.Forms.ToolBarButton toolBarButton20;
private System.Windows.Forms.ToolBarButton toolBarButton21;
private System.Windows.Forms.ToolBarButton toolBarButton22;
private System.Windows.Forms.ToolBarButton toolBarButton23;
private System.Windows.Forms.ToolBarButton toolBarButton24;
private System.Windows.Forms.ToolBarButton toolBarButton25;
private System.Windows.Forms.ToolBarButton toolBarButton26;
private System.Windows.Forms.ToolBarButton toolBarButton27;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.Splitter splitter1;
private Axvgctrl40.Axvgctrl axvgctrl2;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.StatusBarPanel statusBarPanel3;
private System.Windows.Forms.StatusBarPanel statusBarPanel4;
private System.Windows.Forms.StatusBarPanel statusBarPanel5;
private System.Windows.Forms.ImageList imageList2;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.ToolBarButton toolBarButton28;
private System.Windows.Forms.ToolBarButton toolBarButton29;
private System.Windows.Forms.ToolBarButton toolBarButton30;
private System.Windows.Forms.ContextMenu contextMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.ToolBarButton toolBarButton31;
private System.Windows.Forms.ToolBarButton toolBarButton32;
private System.Windows.Forms.ToolBarButton toolBarButton33;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem12;
private System.Windows.Forms.MenuItem menuItem13;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem menuItem15;
private System.Windows.Forms.Panel panel1;
private Axvgctrl40.Axvgctrl axvgctrl1;
private Axvgctrl40.AxvgInspector axvgInspector1;
private System.Windows.Forms.Splitter splitter2;
private System.Windows.Forms.MenuItem menuItem16;
private System.Windows.Forms.MenuItem menuItem17;
private System.Windows.Forms.MenuItem menuItem18;
private System.Windows.Forms.MenuItem menuItem19;
private System.Windows.Forms.MenuItem menuItem20;
private System.Windows.Forms.MenuItem menuItem21;
private System.Windows.Forms.MenuItem menuItem22;
private System.Windows.Forms.MenuItem menuItem23;
private System.Windows.Forms.MenuItem menuItem24;
private System.Windows.Forms.ToolBarButton toolBarButton34;
private System.Windows.Forms.ToolBarButton toolBarButton35;
private System.Windows.Forms.ToolBarButton toolBarButton36;
private System.Windows.Forms.ToolBarButton toolBarButton37;
private System.Windows.Forms.ToolBarButton toolBarButton38;
private System.Windows.Forms.ToolBarButton toolBarButton39;
private System.ComponentModel.IContainer components;
public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel4 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel5 = new System.Windows.Forms.StatusBarPanel();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton16 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton17 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton18 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton19 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton9 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton10 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton11 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton12 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton13 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton14 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton15 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton20 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton21 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton22 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton23 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton24 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton25 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton26 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton27 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton28 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton29 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton30 = new System.Windows.Forms.ToolBarButton();
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.toolBarButton31 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton32 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton33 = new System.Windows.Forms.ToolBarButton();
this.imageList2 = new System.Windows.Forms.ImageList(this.components);
this.listView1 = new System.Windows.Forms.ListView();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.splitter1 = new System.Windows.Forms.Splitter();
this.axvgctrl2 = new Axvgctrl40.Axvgctrl();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem12 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.panel1 = new System.Windows.Forms.Panel();
this.axvgctrl1 = new Axvgctrl40.Axvgctrl();
this.axvgInspector1 = new Axvgctrl40.AxvgInspector();
this.splitter2 = new System.Windows.Forms.Splitter();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.menuItem18 = new System.Windows.Forms.MenuItem();
this.menuItem19 = new System.Windows.Forms.MenuItem();
this.menuItem20 = new System.Windows.Forms.MenuItem();
this.menuItem21 = new System.Windows.Forms.MenuItem();
this.menuItem22 = new System.Windows.Forms.MenuItem();
this.menuItem23 = new System.Windows.Forms.MenuItem();
this.menuItem24 = new System.Windows.Forms.MenuItem();
this.toolBarButton34 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton35 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton36 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton37 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton38 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton39 = new System.Windows.Forms.ToolBarButton();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axvgctrl2)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.axvgctrl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axvgInspector1)).BeginInit();
this.SuspendLayout();
//
// statusBar1
//
this.statusBar1.Location = new System.Drawing.Point(0, 495);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.statusBarPanel1,
this.statusBarPanel2,
this.statusBarPanel3,
this.statusBarPanel4,
this.statusBarPanel5});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(744, 22);
this.statusBar1.TabIndex = 1;
this.statusBar1.Text = "statusBar1";
//
// statusBarPanel1
//
this.statusBarPanel1.Width = 240;
//
// statusBarPanel2
//
this.statusBarPanel2.Width = 150;
//
// statusBarPanel4
//
this.statusBarPanel4.Width = 60;
//
// statusBarPanel5
//
this.statusBarPanel5.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
this.statusBarPanel5.Width = 178;
//
// toolBar1
//
this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
this.toolBar1.AutoSize = false;
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton4,
this.toolBarButton5,
this.toolBarButton16,
this.toolBarButton17,
this.toolBarButton18,
this.toolBarButton19,
this.toolBarButton6,
this.toolBarButton7,
this.toolBarButton8,
this.toolBarButton9,
this.toolBarButton10,
this.toolBarButton11,
this.toolBarButton12,
this.toolBarButton13,
this.toolBarButton14,
this.toolBarButton15,
this.toolBarButton20,
this.toolBarButton21,
this.toolBarButton22,
this.toolBarButton23,
this.toolBarButton24,
this.toolBarButton25,
this.toolBarButton26,
this.toolBarButton27,
this.toolBarButton28,
this.toolBarButton29,
this.toolBarButton30,
this.toolBarButton31,
this.toolBarButton32,
this.toolBarButton33,
this.toolBarButton34,
this.toolBarButton35,
this.toolBarButton36,
this.toolBarButton37,
this.toolBarButton38,
this.toolBarButton39});
this.toolBar1.Divider = false;
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList2;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(744, 64);
this.toolBar1.TabIndex = 3;
this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
//
// toolBarButton1
//
this.toolBarButton1.ImageIndex = 0;
//
// toolBarButton2
//
this.toolBarButton2.ImageIndex = 1;
//
// toolBarButton3
//
this.toolBarButton3.Enabled = false;
this.toolBarButton3.ImageIndex = 2;
//
// toolBarButton4
//
this.toolBarButton4.Enabled = false;
this.toolBarButton4.ImageIndex = 3;
//
// toolBarButton5
//
this.toolBarButton5.Enabled = false;
this.toolBarButton5.ImageIndex = 4;
//
// toolBarButton16
//
this.toolBarButton16.ImageIndex = 15;
//
// toolBarButton17
//
this.toolBarButton17.ImageIndex = 16;
//
// toolBarButton18
//
this.toolBarButton18.ImageIndex = 17;
//
// toolBarButton19
//
this.toolBarButton19.ImageIndex = 18;
//
// toolBarButton6
//
this.toolBarButton6.ImageIndex = 5;
//
// toolBarButton7
//
this.toolBarButton7.ImageIndex = 6;
//
// toolBarButton8
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -