📄 mainframe.cs
字号:
return -1;
}
#endregion
#region Creator
public MainFrame()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
Arrange();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
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.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainFrame));
this.mainMenu = new System.Windows.Forms.MainMenu();
this.fileMenuItem = new System.Windows.Forms.MenuItem();
this.newMenuItem = new System.Windows.Forms.MenuItem();
this.openMenuItem = new System.Windows.Forms.MenuItem();
this.saveMenuItem = new System.Windows.Forms.MenuItem();
this.saveAsMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem19 = new System.Windows.Forms.MenuItem();
this.printPreviewMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem12 = new System.Windows.Forms.MenuItem();
this.closeDocumentMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.exitMenuItem = new System.Windows.Forms.MenuItem();
this.optionsMenuItem = new System.Windows.Forms.MenuItem();
this.gridMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.aboutMenuItem = new System.Windows.Forms.MenuItem();
this.designPane = new daReportDesigner.DesignPane();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.messagePanel = new System.Windows.Forms.StatusBarPanel();
this.selectionPanel = new System.Windows.Forms.StatusBarPanel();
this.propertyGrid = new System.Windows.Forms.PropertyGrid();
this.rightPanel = new System.Windows.Forms.Panel();
this.browserPanel = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.objectBrowser = new daReportDesigner.ObjectBrowser();
this.browserImageList = new System.Windows.Forms.ImageList(this.components);
this.browserLabel = new System.Windows.Forms.Label();
this.splitter2 = new System.Windows.Forms.Splitter();
this.propertyPanel = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.propertyObject = new System.Windows.Forms.Label();
this.propertyLabel = new System.Windows.Forms.Label();
this.browserContextMenuStatic = new System.Windows.Forms.ContextMenu();
this.addStaticTextFieldMenuItem = new System.Windows.Forms.MenuItem();
this.addStaticPictureBoxMenuItem = new System.Windows.Forms.MenuItem();
this.addStaticTableMenuItem = new System.Windows.Forms.MenuItem();
this.addStaticChartMenuItem = new System.Windows.Forms.MenuItem();
this.addStaticLineMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.deleteStaticObjectMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.backOneMenuItem = new System.Windows.Forms.MenuItem();
this.sendToBackStaticMenuItem = new System.Windows.Forms.MenuItem();
this.forwardOneStaticMenuItem = new System.Windows.Forms.MenuItem();
this.bringForwardStaticMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.duplicateStaticMenuItem = new System.Windows.Forms.MenuItem();
this.splitter3 = new System.Windows.Forms.Splitter();
this.browserStaticRootContextMenu = new System.Windows.Forms.ContextMenu();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.addStaticChartRootMenuItem = new System.Windows.Forms.MenuItem();
this.addStaticLineRootMenuItem = new System.Windows.Forms.MenuItem();
this.browserDynamicRootContextMenu = new System.Windows.Forms.ContextMenu();
this.addPageNumberMenuItem = new System.Windows.Forms.MenuItem();
this.addTableDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.browserContextMenuDynamic = new System.Windows.Forms.ContextMenu();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.deleteDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem18 = new System.Windows.Forms.MenuItem();
this.backOneDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.sendToBackDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.forwardOneDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.bringToFrontDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.duplicateDynamicMenuItem = new System.Windows.Forms.MenuItem();
this.printPreviewDialog = new System.Windows.Forms.PrintPreviewDialog();
this.tabPanel = new System.Windows.Forms.TabControl();
this.editPage = new System.Windows.Forms.TabPage();
this.scrollPanel = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.messagePanel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.selectionPanel)).BeginInit();
this.rightPanel.SuspendLayout();
this.browserPanel.SuspendLayout();
this.panel3.SuspendLayout();
this.propertyPanel.SuspendLayout();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.tabPanel.SuspendLayout();
this.editPage.SuspendLayout();
this.scrollPanel.SuspendLayout();
this.SuspendLayout();
//
// mainMenu
//
this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.fileMenuItem,
this.optionsMenuItem,
this.menuItem11});
//
// fileMenuItem
//
this.fileMenuItem.Index = 0;
this.fileMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.newMenuItem,
this.openMenuItem,
this.saveMenuItem,
this.saveAsMenuItem,
this.menuItem19,
this.printPreviewMenuItem,
this.menuItem12,
this.closeDocumentMenuItem,
this.menuItem2,
this.exitMenuItem});
this.fileMenuItem.Text = "&File";
//
// newMenuItem
//
this.newMenuItem.Index = 0;
this.newMenuItem.Text = "&New";
this.newMenuItem.Click += new System.EventHandler(this.newMenuItem_Click);
//
// openMenuItem
//
this.openMenuItem.Index = 1;
this.openMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
this.openMenuItem.Text = "&Open ...";
this.openMenuItem.Click += new System.EventHandler(this.openMenuItem_Click);
//
// saveMenuItem
//
this.saveMenuItem.Enabled = false;
this.saveMenuItem.Index = 2;
this.saveMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
this.saveMenuItem.Text = "&Save";
this.saveMenuItem.Click += new System.EventHandler(this.saveMenuItem_Click);
//
// saveAsMenuItem
//
this.saveAsMenuItem.Enabled = false;
this.saveAsMenuItem.Index = 3;
this.saveAsMenuItem.Text = "Save &as ...";
this.saveAsMenuItem.Click += new System.EventHandler(this.saveAsMenuItem_Click);
//
// menuItem19
//
this.menuItem19.Index = 4;
this.menuItem19.Text = "-";
//
// printPreviewMenuItem
//
this.printPreviewMenuItem.Enabled = false;
this.printPreviewMenuItem.Index = 5;
this.printPreviewMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftP;
this.printPreviewMenuItem.Text = "&Print preview";
this.printPreviewMenuItem.Click += new System.EventHandler(this.printPreviewMenuItem_Click);
//
// menuItem12
//
this.menuItem12.Index = 6;
this.menuItem12.Text = "-";
//
// closeDocumentMenuItem
//
this.closeDocumentMenuItem.Enabled = false;
this.closeDocumentMenuItem.Index = 7;
this.closeDocumentMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlW;
this.closeDocumentMenuItem.Text = "&Close";
this.closeDocumentMenuItem.Click += new System.EventHandler(this.closeDocumentMenuItem_Click);
//
// menuItem2
//
this.menuItem2.Index = 8;
this.menuItem2.Text = "-";
//
// exitMenuItem
//
this.exitMenuItem.Index = 9;
this.exitMenuItem.Text = "E&xit";
this.exitMenuItem.Click += new System.EventHandler(this.exitMenuItem_Click);
//
// optionsMenuItem
//
this.optionsMenuItem.Index = 1;
this.optionsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.gridMenuItem});
this.optionsMenuItem.Text = "&Options";
//
// gridMenuItem
//
this.gridMenuItem.Index = 0;
this.gridMenuItem.Text = "&Grid";
this.gridMenuItem.Click += new System.EventHandler(this.gridMenuItem_Click);
//
// menuItem11
//
this.menuItem11.Index = 2;
this.menuItem11.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.aboutMenuItem});
this.menuItem11.Text = "&Help";
//
// aboutMenuItem
//
this.aboutMenuItem.Index = 0;
this.aboutMenuItem.Text = "&About ...";
this.aboutMenuItem.Click += new System.EventHandler(this.aboutMenuItem_Click);
//
// designPane
//
this.designPane.BackColor = System.Drawing.Color.White;
this.designPane.GridSize = 8;
this.designPane.Location = new System.Drawing.Point(0, 0);
this.designPane.Name = "designPane";
this.designPane.ShowGrid = false;
this.designPane.Size = new System.Drawing.Size(384, 352);
this.designPane.TabIndex = 0;
this.designPane.OnSelectionChanged += new daReportDesigner.SelectionChangedHandler(this.designPane_OnSelectionChanged);
this.designPane.OnMoving += new daReportDesigner.SelectionChangedHandler(this.designPane_OnMoving);
this.designPane.OnMoveFinished += new daReportDesigner.SelectionChangedHandler(this.designPane_OnMoveFinished);
//
// statusBar1
//
this.statusBar1.Location = new System.Drawing.Point(0, 471);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.messagePanel,
this.selectionPanel});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(732, 22);
this.statusBar1.SizingGrip = false;
this.statusBar1.TabIndex = 3;
this.statusBar1.Text = "statusBar1";
//
// messagePanel
//
this.messagePanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
this.messagePanel.Width = 512;
//
// selectionPanel
//
this.selectionPanel.Width = 220;
//
// propertyGrid
//
this.propertyGrid.CommandsVisibleIfAvailable = true;
this.propertyGrid.Cursor = System.Windows.Forms.Cursors.HSplit;
this.propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill;
this.propertyGrid.LargeButtons = false;
this.propertyGrid.LineColor = System.Drawing.SystemColors.ScrollBar;
this.propertyGrid.Location = new System.Drawing.Point(0, 28);
this.propertyGrid.Name = "propertyGrid";
this.propertyGrid.Size = new System.Drawing.Size(228, 234);
this.propertyGrid.TabIndex = 0;
this.propertyGrid.Text = "propertyGrid1";
this.propertyGrid.ViewBackColor = System.Drawing.SystemColors.Window;
this.propertyGrid.ViewForeColor = System.Drawing.SystemColors.WindowText;
this.propertyGrid.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid_PropertyValueChanged);
//
// rightPanel
//
this.rightPanel.Controls.Add(this.browserPanel);
this.rightPanel.Controls.Add(this.splitter2);
this.rightPanel.Controls.Add(this.propertyPanel);
this.rightPanel.Dock = System.Windows.Forms.DockStyle.Right;
this.rightPanel.Location = new System.Drawing.Point(500, 0);
this.rightPanel.Name = "rightPanel";
this.rightPanel.Size = new System.Drawing.Size(232, 471);
this.rightPanel.TabIndex = 5;
//
// browserPanel
//
this.browserPanel.Controls.Add(this.panel3);
this.browserPanel.Controls.Add(this.browserLabel);
this.browserPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.browserPanel.DockPadding.Left = 1;
this.browserPanel.DockPadding.Right = 2;
this.browserPanel.Location = new System.Drawing.Point(0, 0);
this.browserPanel.Name = "browserPanel";
this.browserPanel.Size = new System.Drawing.Size(232, 188);
this.browserPanel.TabIndex = 2;
//
// panel3
//
this.panel3.Controls.Add(this.objectBrowser);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.DockPadding.Top = 2;
this.panel3.Location = new System.Drawing.Point(1, 16);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(229, 172);
this.panel3.TabIndex = 3;
//
// objectBrowser
//
this.objectBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
this.objectBrowser.HideSelection = false;
this.objectBrowser.ImageIndex = 4;
this.objectBrowser.ImageList = this.browserImageList;
this.objectBrowser.Location = new System.Drawing.Point(0, 2);
this.objectBrowser.Name = "objectBrowser";
this.objectBrowser.SelectedImageIndex = 4;
this.objectBrowser.Size = new System.Drawing.Size(229, 170);
this.objectBrowser.TabIndex = 2;
this.objectBrowser.AfterCustomSelect += new daReportDesigner.AfterCustomSelectHandler(this.objectBrowser_AfterCustomSelect);
//
// browserImageList
//
this.browserImageList.ImageSize = new System.Drawing.Size(16, 16);
this.browserImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("browserImageList.ImageStream")));
this.browserImageList.TransparentColor = System.Drawing.Color.Transparent;
//
// browserLabel
//
this.browserLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -