📄 programmenu.cs
字号:
//-----------------------------------------------------------------------------
// Code from _Programming the .NET Compact Framework with C#_
// and _Programming the .NET Compact Framework with VB_
// (c) Copyright 2002-2004 Paul Yao and David Durant.
// All rights reserved.
//-----------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
namespace ProgramMenu
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class FormMain : System.Windows.Forms.Form
{
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MainMenu menuStartup;
private System.Windows.Forms.MenuItem mitemNewDocument;
private System.Windows.Forms.MenuItem mitemNewCheckServer;
private System.Windows.Forms.Button cmdHideMenus;
private System.Windows.Forms.Button cmdShowStartupMenu;
private System.Windows.Forms.Button cmdShowEditMenu;
private System.Windows.Forms.Button cmdEmptyMenu;
private System.Windows.Forms.MainMenu menuEmpty;
private System.Windows.Forms.MenuItem mitemNewHTML;
internal System.Windows.Forms.MainMenu menuEdit;
internal System.Windows.Forms.MenuItem menuItem2;
internal System.Windows.Forms.MenuItem mitemEditUndo;
internal System.Windows.Forms.MenuItem mitemEditRedo;
internal System.Windows.Forms.MenuItem menuItem7;
internal System.Windows.Forms.MenuItem mitemEditCut;
internal System.Windows.Forms.MenuItem mitemEditCopy;
internal System.Windows.Forms.MenuItem mitemEditPaste;
internal System.Windows.Forms.MenuItem mitemEditClear;
internal System.Windows.Forms.MenuItem mitemEditSelectAll;
internal System.Windows.Forms.MenuItem menuItem13;
internal System.Windows.Forms.MenuItem mitemEditFill;
internal System.Windows.Forms.MenuItem menuItem15;
internal System.Windows.Forms.MenuItem mitemEditRename;
internal System.Windows.Forms.MenuItem menuItem17;
internal System.Windows.Forms.MenuItem mitemViewToolbar;
internal System.Windows.Forms.MenuItem mitemViewHorzScroll;
internal System.Windows.Forms.MenuItem mitemViewVertScroll;
internal System.Windows.Forms.MenuItem mitemViewStat;
internal System.Windows.Forms.MenuItem mitemViewHeadings;
internal System.Windows.Forms.MenuItem menuItem23;
internal System.Windows.Forms.MenuItem mitemViewSplit;
internal System.Windows.Forms.MenuItem mitemViewFreeze;
internal System.Windows.Forms.MenuItem menuItem26;
internal System.Windows.Forms.MenuItem mitemViewFullScreen;
internal System.Windows.Forms.MenuItem menuItem28;
internal System.Windows.Forms.MenuItem mitemZoom50;
internal System.Windows.Forms.MenuItem mitemZoom75;
internal System.Windows.Forms.MenuItem mitemZoom100;
internal System.Windows.Forms.MenuItem mitemZoom125;
internal System.Windows.Forms.MenuItem mitemZoom150;
internal System.Windows.Forms.MenuItem menuItem34;
internal System.Windows.Forms.MenuItem mitemFormatCells;
internal System.Windows.Forms.MenuItem menuItem36;
internal System.Windows.Forms.MenuItem mitemInsertCells;
internal System.Windows.Forms.MenuItem mitemDeleteCells;
private System.Windows.Forms.MenuItem menuItem5;
public FormMain()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.menuStartup = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.mitemNewDocument = new System.Windows.Forms.MenuItem();
this.mitemNewHTML = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.mitemNewCheckServer = new System.Windows.Forms.MenuItem();
this.cmdHideMenus = new System.Windows.Forms.Button();
this.cmdShowStartupMenu = new System.Windows.Forms.Button();
this.cmdShowEditMenu = new System.Windows.Forms.Button();
this.cmdEmptyMenu = new System.Windows.Forms.Button();
this.menuEmpty = new System.Windows.Forms.MainMenu();
this.menuEdit = new System.Windows.Forms.MainMenu();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.mitemEditUndo = new System.Windows.Forms.MenuItem();
this.mitemEditRedo = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.mitemEditCut = new System.Windows.Forms.MenuItem();
this.mitemEditCopy = new System.Windows.Forms.MenuItem();
this.mitemEditPaste = new System.Windows.Forms.MenuItem();
this.mitemEditClear = new System.Windows.Forms.MenuItem();
this.mitemEditSelectAll = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.mitemEditFill = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.mitemEditRename = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.mitemViewToolbar = new System.Windows.Forms.MenuItem();
this.mitemViewHorzScroll = new System.Windows.Forms.MenuItem();
this.mitemViewVertScroll = new System.Windows.Forms.MenuItem();
this.mitemViewStat = new System.Windows.Forms.MenuItem();
this.mitemViewHeadings = new System.Windows.Forms.MenuItem();
this.menuItem23 = new System.Windows.Forms.MenuItem();
this.mitemViewSplit = new System.Windows.Forms.MenuItem();
this.mitemViewFreeze = new System.Windows.Forms.MenuItem();
this.menuItem26 = new System.Windows.Forms.MenuItem();
this.mitemViewFullScreen = new System.Windows.Forms.MenuItem();
this.menuItem28 = new System.Windows.Forms.MenuItem();
this.mitemZoom50 = new System.Windows.Forms.MenuItem();
this.mitemZoom75 = new System.Windows.Forms.MenuItem();
this.mitemZoom100 = new System.Windows.Forms.MenuItem();
this.mitemZoom125 = new System.Windows.Forms.MenuItem();
this.mitemZoom150 = new System.Windows.Forms.MenuItem();
this.menuItem34 = new System.Windows.Forms.MenuItem();
this.mitemFormatCells = new System.Windows.Forms.MenuItem();
this.menuItem36 = new System.Windows.Forms.MenuItem();
this.mitemInsertCells = new System.Windows.Forms.MenuItem();
this.mitemDeleteCells = new System.Windows.Forms.MenuItem();
//
// menuStartup
//
this.menuStartup.MenuItems.Add(this.menuItem1);
//
// menuItem1
//
this.menuItem1.MenuItems.Add(this.mitemNewDocument);
this.menuItem1.MenuItems.Add(this.mitemNewHTML);
this.menuItem1.MenuItems.Add(this.menuItem5);
this.menuItem1.MenuItems.Add(this.mitemNewCheckServer);
this.menuItem1.Text = "New";
//
// mitemNewDocument
//
this.mitemNewDocument.Text = "Document";
//
// mitemNewHTML
//
this.mitemNewHTML.Enabled = false;
this.mitemNewHTML.Text = "HTML Page";
//
// menuItem5
//
this.menuItem5.Text = "-";
//
// mitemNewCheckServer
//
this.mitemNewCheckServer.Text = "Check server";
//
// cmdHideMenus
//
this.cmdHideMenus.Location = new System.Drawing.Point(32, 32);
this.cmdHideMenus.Size = new System.Drawing.Size(184, 24);
this.cmdHideMenus.Text = "Hide Menus";
this.cmdHideMenus.Click += new System.EventHandler(this.cmdHideMenus_Click);
//
// cmdShowStartupMenu
//
this.cmdShowStartupMenu.Location = new System.Drawing.Point(32, 112);
this.cmdShowStartupMenu.Size = new System.Drawing.Size(184, 24);
this.cmdShowStartupMenu.Text = "Show Startup Menu";
this.cmdShowStartupMenu.Click += new System.EventHandler(this.cmdShowStartupMenu_Click);
//
// cmdShowEditMenu
//
this.cmdShowEditMenu.Location = new System.Drawing.Point(32, 160);
this.cmdShowEditMenu.Size = new System.Drawing.Size(184, 24);
this.cmdShowEditMenu.Text = "Show Editing Menu";
this.cmdShowEditMenu.Click += new System.EventHandler(this.cmdShowEditMenu_Click);
//
// cmdEmptyMenu
//
this.cmdEmptyMenu.Location = new System.Drawing.Point(32, 72);
this.cmdEmptyMenu.Size = new System.Drawing.Size(184, 24);
this.cmdEmptyMenu.Text = "Show Empty Menu (for SIP)";
this.cmdEmptyMenu.Click += new System.EventHandler(this.cmdEmptyMenu_Click);
//
// menuEdit
//
this.menuEdit.MenuItems.Add(this.menuItem2);
this.menuEdit.MenuItems.Add(this.menuItem17);
this.menuEdit.MenuItems.Add(this.menuItem34);
//
// menuItem2
//
this.menuItem2.MenuItems.Add(this.mitemEditUndo);
this.menuItem2.MenuItems.Add(this.mitemEditRedo);
this.menuItem2.MenuItems.Add(this.menuItem7);
this.menuItem2.MenuItems.Add(this.mitemEditCut);
this.menuItem2.MenuItems.Add(this.mitemEditCopy);
this.menuItem2.MenuItems.Add(this.mitemEditPaste);
this.menuItem2.MenuItems.Add(this.mitemEditClear);
this.menuItem2.MenuItems.Add(this.mitemEditSelectAll);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -