📄 formmsgmis.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace LanMsg
{
/// <summary>
/// FormMsgMis 的摘要说明。
/// </summary>
public class FormMsgMis : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
public LanMsg.MyExtRichTextBox RTBRecord;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.TreeView TV_user;
private System.Windows.Forms.MenuItem meuFileExit;
private System.Windows.Forms.MenuItem menFileExport;
private System.Windows.Forms.MenuItem menViewRefresh;
private System.ComponentModel.IContainer components;
private System.Windows.Forms.ToolBarButton ButUp;
private System.Windows.Forms.ToolBarButton ButDown;
private System.Windows.Forms.ToolBarButton ButFirst;
private System.Windows.Forms.ToolBarButton ButLast;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
internal System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.ToolBarButton ButExit;
private System.Windows.Forms.ToolBarButton toolBarButton1;
private System.Windows.Forms.ToolBarButton toolBarButton2;
private System.Windows.Forms.ToolBarButton ButDelRecord;
private System.Windows.Forms.ContextMenu contextMenu1;
private System.Windows.Forms.MenuItem menuItemCopy;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItemSelectAll;
private System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItemEdit;
private System.Windows.Forms.MenuItem menuItemEditCopy;
private System.Windows.Forms.MenuItem menuItemEditSelectAll;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItemEditLast;
private System.Windows.Forms.MenuItem menuItemEditDown;
private System.Windows.Forms.MenuItem menuItemEditFUp;
private System.Windows.Forms.MenuItem menuItemEditFirst;
private System.Windows.Forms.MenuItem menuItemFile;
private System.Windows.Forms.MenuItem menuItemView;
private LanMsg.Controls.OfficeMenus officeMenus1;
private System.Windows.Forms.MenuItem menuItemEditDelRecord;
private System.Windows.Forms.MenuItem menuItem5;
private ClassFormMain FormMain =new ClassFormMain();
public FormMsgMis()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.TV_user.ImageList=this.FormMain.formMain.imageList1;
this.TV_user.Nodes[0].ImageIndex=17;this.TV_user.Nodes[0].SelectedImageIndex=17;
this.TV_user.Nodes[1].ImageIndex=16;this.TV_user.Nodes[1].SelectedImageIndex=16;
for(int i=0;i<this.TV_user.Nodes[0].Nodes.Count ;i++)
{
this.TV_user.Nodes[0].Nodes[i].ImageIndex=14;
this.TV_user.Nodes[0].Nodes[i].SelectedImageIndex=15;
}
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing)
{
FormMain.formMain.forms.Romove(this);
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(FormMsgMis));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItemFile = new System.Windows.Forms.MenuItem();
this.menFileExport = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.meuFileExit = new System.Windows.Forms.MenuItem();
this.menuItemEdit = new System.Windows.Forms.MenuItem();
this.menuItemEditFirst = new System.Windows.Forms.MenuItem();
this.menuItemEditFUp = new System.Windows.Forms.MenuItem();
this.menuItemEditDown = new System.Windows.Forms.MenuItem();
this.menuItemEditLast = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItemEditDelRecord = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItemEditCopy = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItemEditSelectAll = new System.Windows.Forms.MenuItem();
this.menuItemView = new System.Windows.Forms.MenuItem();
this.menViewRefresh = new System.Windows.Forms.MenuItem();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.ButExit = new System.Windows.Forms.ToolBarButton();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.ButFirst = new System.Windows.Forms.ToolBarButton();
this.ButUp = new System.Windows.Forms.ToolBarButton();
this.ButDown = new System.Windows.Forms.ToolBarButton();
this.ButLast = new System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
this.ButDelRecord = new System.Windows.Forms.ToolBarButton();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.TV_user = new System.Windows.Forms.TreeView();
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel5 = new System.Windows.Forms.Panel();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.RTBRecord = new LanMsg.MyExtRichTextBox();
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItemCopy = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItemSelectAll = new System.Windows.Forms.MenuItem();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.officeMenus1 = new LanMsg.Controls.OfficeMenus(this.components);
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
this.panel5.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.SuspendLayout();
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemFile,
this.menuItemEdit,
this.menuItemView});
//
// menuItemFile
//
this.menuItemFile.Index = 0;
this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menFileExport,
this.menuItem3,
this.meuFileExit});
this.menuItemFile.Text = "文件(&F)";
//
// menFileExport
//
this.menFileExport.Index = 0;
this.menFileExport.Text = "导出(&O)";
this.menFileExport.Visible = false;
//
// menuItem3
//
this.menuItem3.Index = 1;
this.menuItem3.OwnerDraw = true;
this.menuItem3.Text = "-";
this.menuItem3.Visible = false;
//
// meuFileExit
//
this.meuFileExit.Index = 2;
this.meuFileExit.Text = "关闭(&E)";
this.meuFileExit.Click += new System.EventHandler(this.meuFileExit_Click);
//
// menuItemEdit
//
this.menuItemEdit.Index = 1;
this.menuItemEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemEditFirst,
this.menuItemEditFUp,
this.menuItemEditDown,
this.menuItemEditLast,
this.menuItem4,
this.menuItemEditDelRecord,
this.menuItem5,
this.menuItemEditCopy,
this.menuItem7,
this.menuItemEditSelectAll});
this.menuItemEdit.Text = "编辑(&E)";
//
// menuItemEditFirst
//
this.menuItemEditFirst.Enabled = false;
this.menuItemEditFirst.Index = 0;
this.menuItemEditFirst.Text = "第一页(&F)";
this.menuItemEditFirst.Click += new System.EventHandler(this.menuItemEditFirst_Click);
//
// menuItemEditFUp
//
this.menuItemEditFUp.Enabled = false;
this.menuItemEditFUp.Index = 1;
this.menuItemEditFUp.Text = "上一页(&P)";
this.menuItemEditFUp.Click += new System.EventHandler(this.menuItemEditFUp_Click);
//
// menuItemEditDown
//
this.menuItemEditDown.Enabled = false;
this.menuItemEditDown.Index = 2;
this.menuItemEditDown.Text = "下一页(N)";
this.menuItemEditDown.Click += new System.EventHandler(this.menuItemEditDown_Click);
//
// menuItemEditLast
//
this.menuItemEditLast.Enabled = false;
this.menuItemEditLast.Index = 3;
this.menuItemEditLast.Text = "最后一页(L)";
this.menuItemEditLast.Click += new System.EventHandler(this.menuItemEditLast_Click);
//
// menuItem4
//
this.menuItem4.Index = 4;
this.menuItem4.Text = "-";
//
// menuItemEditDelRecord
//
this.menuItemEditDelRecord.Enabled = false;
this.menuItemEditDelRecord.Index = 5;
this.menuItemEditDelRecord.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
this.menuItemEditDelRecord.Text = "删除(&D)";
this.menuItemEditDelRecord.Click += new System.EventHandler(this.menuItemEditDelRecord_Click);
//
// menuItem5
//
this.menuItem5.Index = 6;
this.menuItem5.Text = "-";
//
// menuItemEditCopy
//
this.menuItemEditCopy.Index = 7;
this.menuItemEditCopy.Text = "复制(&C)";
this.menuItemEditCopy.Click += new System.EventHandler(this.menuItemEditCopy_Click);
//
// menuItem7
//
this.menuItem7.Index = 8;
this.menuItem7.Text = "-";
//
// menuItemEditSelectAll
//
this.menuItemEditSelectAll.Index = 9;
this.menuItemEditSelectAll.Text = "全选(&A)";
this.menuItemEditSelectAll.Click += new System.EventHandler(this.menuItemEditSelectAll_Click);
//
// menuItemView
//
this.menuItemView.Index = 2;
this.menuItemView.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menViewRefresh});
this.menuItemView.Text = "视图(&V)";
this.menuItemView.Visible = false;
//
// menViewRefresh
//
this.menViewRefresh.Index = 0;
this.menViewRefresh.Text = "刷新(&F)";
//
// toolBar1
//
this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.ButExit,
this.toolBarButton1,
this.ButFirst,
this.ButUp,
this.ButDown,
this.ButLast,
this.toolBarButton2,
this.ButDelRecord});
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList1;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(632, 28);
this.toolBar1.TabIndex = 0;
this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
//
// ButExit
//
this.ButExit.ImageIndex = 18;
this.ButExit.ToolTipText = "关闭";
//
// toolBarButton1
//
this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// ButFirst
//
this.ButFirst.Enabled = false;
this.ButFirst.ImageIndex = 15;
this.ButFirst.ToolTipText = "第一页";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -