📄 formsendmsggroup.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace LanMsg
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class FormSendMsgGroup : DevComponents.DotNetBar.Office2007RibbonForm
{
private DevComponents.DotNetBar.RibbonControl ribbonControl1;
private DevComponents.Editors.ComboItem comboItem1;
private DevComponents.Editors.ComboItem comboItem2;
private DevComponents.Editors.ComboItem comboItem3;
private DevComponents.DotNetBar.Bar bar1;
private DevComponents.DotNetBar.LabelItem labelItem1;
private DevComponents.DotNetBar.ComboBoxItem comboBoxInfoClass;
private DevComponents.Editors.ComboItem comb1;
private DevComponents.Editors.ComboItem comb3;
private DevComponents.DotNetBar.ButtonItem butSendMsg;
private System.ComponentModel.IContainer components;
private DevComponents.DotNetBar.ButtonItem butSave;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private LanMsg.MyExtRichTextBox RTBSendContent;
private DevComponents.DotNetBar.ButtonItem buttonItem1;
private DevComponents.DotNetBar.DotNetBarManager dotNetBarManager1;
private DevComponents.DotNetBar.DockSite barLeftDockSite;
private DevComponents.DotNetBar.DockSite barRightDockSite;
private DevComponents.DotNetBar.DockSite barTopDockSite;
private DevComponents.DotNetBar.DockSite barBottomDockSite;
private ClassFormMain FormMain =new ClassFormMain();
public FormSendMsgGroup()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.comboBoxInfoClass.SelectedIndex=0;
//
// 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(FormSendMsgGroup));
this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
this.butSave = new DevComponents.DotNetBar.ButtonItem();
this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
this.comboItem1 = new DevComponents.Editors.ComboItem();
this.comboItem2 = new DevComponents.Editors.ComboItem();
this.comboItem3 = new DevComponents.Editors.ComboItem();
this.bar1 = new DevComponents.DotNetBar.Bar();
this.labelItem1 = new DevComponents.DotNetBar.LabelItem();
this.comboBoxInfoClass = new DevComponents.DotNetBar.ComboBoxItem();
this.comb1 = new DevComponents.Editors.ComboItem();
this.comb3 = new DevComponents.Editors.ComboItem();
this.butSendMsg = new DevComponents.DotNetBar.ButtonItem();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.RTBSendContent = new LanMsg.MyExtRichTextBox();
this.dotNetBarManager1 = new DevComponents.DotNetBar.DotNetBarManager(this.components);
this.barLeftDockSite = new DevComponents.DotNetBar.DockSite();
this.barRightDockSite = new DevComponents.DotNetBar.DockSite();
this.barTopDockSite = new DevComponents.DotNetBar.DockSite();
this.barBottomDockSite = new DevComponents.DotNetBar.DockSite();
((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit();
this.SuspendLayout();
//
// ribbonControl1
//
this.ribbonControl1.BackColor = System.Drawing.SystemColors.Control;
this.ribbonControl1.CaptionVisible = true;
this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.ribbonControl1.DockPadding.Bottom = 2;
this.ribbonControl1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.butSave});
this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.ribbonControl1.Location = new System.Drawing.Point(2, 2);
this.ribbonControl1.MdiSystemItemVisible = false;
this.ribbonControl1.Name = "ribbonControl1";
this.ribbonControl1.QuickToolbarItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.buttonItem1});
this.ribbonControl1.RibbonStripIndent = 55;
this.ribbonControl1.Size = new System.Drawing.Size(496, 22);
this.ribbonControl1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.ribbonControl1.TabGroupHeight = 15;
this.ribbonControl1.TabIndex = 43;
//
// butSave
//
this.butSave.Icon = ((System.Drawing.Icon)(resources.GetObject("butSave.Icon")));
this.butSave.Name = "butSave";
this.butSave.Tooltip = "消息另存为";
this.butSave.Click += new System.EventHandler(this.butSave_Click);
//
// buttonItem1
//
this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
this.buttonItem1.Name = "buttonItem1";
this.buttonItem1.Text = "buttonItem1";
//
// comboItem1
//
this.comboItem1.Text = "通知";
//
// comboItem2
//
this.comboItem2.Text = "消息(需要回复内容)";
//
// comboItem3
//
this.comboItem3.Text = "通知(需要确认收到)";
//
// bar1
//
this.bar1.AccessibleDescription = "DotNetBar Bar (bar1)";
this.bar1.AccessibleName = "DotNetBar Bar";
this.bar1.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar;
this.bar1.AntiAlias = true;
this.bar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bar1.GrabHandleStyle = DevComponents.DotNetBar.eGrabHandleStyle.ResizeHandle;
this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.labelItem1,
this.comboBoxInfoClass,
this.butSendMsg});
this.bar1.ItemSpacing = 2;
this.bar1.Location = new System.Drawing.Point(2, 323);
this.bar1.Name = "bar1";
this.bar1.Size = new System.Drawing.Size(496, 25);
this.bar1.Stretch = true;
this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.bar1.TabIndex = 48;
this.bar1.TabStop = false;
this.bar1.Text = "barStatus";
//
// labelItem1
//
this.labelItem1.BorderType = DevComponents.DotNetBar.eBorderType.None;
this.labelItem1.Name = "labelItem1";
this.labelItem1.PaddingLeft = 4;
this.labelItem1.Text = "发送类别:";
//
// comboBoxInfoClass
//
this.comboBoxInfoClass.ItemHeight = 14;
this.comboBoxInfoClass.Items.AddRange(new object[] {
this.comb1,
this.comb3});
this.comboBoxInfoClass.Name = "comboBoxInfoClass";
this.comboBoxInfoClass.Stretch = true;
//
// comb1
//
this.comb1.Text = "通知";
//
// comb3
//
this.comb3.Text = "普通消息";
//
// butSendMsg
//
this.butSendMsg.Name = "butSendMsg";
this.butSendMsg.Text = " 发送(&S)";
this.butSendMsg.Click += new System.EventHandler(this.butSendMsg_Click);
//
// panel1
//
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(2, 24);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(8, 299);
this.panel1.TabIndex = 49;
//
// panel2
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -