⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 layout.cs

📁 煤矿信息管理系统是基于SuperMap Object
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.m_draw_direaction.Text = "方向标";
			this.m_draw_direaction.Click += new System.EventHandler(this.m_draw_direaction_Click);
			// 
			// m_draw_table
			// 
			this.m_draw_table.Index = 5;
			this.m_draw_table.Text = "表格";
			this.m_draw_table.Click += new System.EventHandler(this.m_draw_table_Click);
			// 
			// m_draw_picture
			// 
			this.m_draw_picture.Index = 6;
			this.m_draw_picture.Text = "图片";
			this.m_draw_picture.Click += new System.EventHandler(this.m_draw_picture_Click);
			// 
			// menuItem29
			// 
			this.menuItem29.Index = 2;
			this.menuItem29.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.m_select,
																					   this.m_null,
																					   this.m_zoomout,
																					   this.m_zoomin,
																					   this.m_pan,
																					   this.m_height,
																					   this.m_with,
																					   this.menuItem3});
			this.menuItem29.Text = "页面操作 (&O)";
			// 
			// m_select
			// 
			this.m_select.Index = 0;
			this.m_select.Text = "选择对象";
			this.m_select.Click += new System.EventHandler(this.m_select_Click);
			// 
			// m_null
			// 
			this.m_null.Index = 1;
			this.m_null.Text = "置空";
			this.m_null.Click += new System.EventHandler(this.m_null_Click);
			// 
			// m_zoomout
			// 
			this.m_zoomout.Index = 2;
			this.m_zoomout.Text = "放大";
			this.m_zoomout.Click += new System.EventHandler(this.m_zoomout_Click);
			// 
			// m_zoomin
			// 
			this.m_zoomin.Index = 3;
			this.m_zoomin.Text = "缩小";
			this.m_zoomin.Click += new System.EventHandler(this.m_zoomin_Click);
			// 
			// m_pan
			// 
			this.m_pan.Index = 4;
			this.m_pan.Text = "平移";
			this.m_pan.Click += new System.EventHandler(this.m_pan_Click);
			// 
			// m_height
			// 
			this.m_height.Index = 5;
			this.m_height.Text = "适合高度";
			this.m_height.Click += new System.EventHandler(this.m_height_Click);
			// 
			// m_with
			// 
			this.m_with.Index = 6;
			this.m_with.Text = "适合宽度";
			this.m_with.Click += new System.EventHandler(this.m_with_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 7;
			this.menuItem3.Text = "全部显示";
			this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 3;
			this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem4});
			this.menuItem2.Text = "帮助 (&H)";
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 0;
			this.menuItem4.Shortcut = System.Windows.Forms.Shortcut.F1;
			this.menuItem4.Text = "系统帮助";
			this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
			// 
			// toolControl1
			// 
			this.toolControl1.Commands.AddRange(new Crownwood.DotNetMagic.Controls.Command.CommandBase[] {
																											 this.buttonCommand_print,
																											 this.separatorCommand1,
																											 this.buttonCommand_out,
																											 this.buttonCommand_in,
																											 this.buttonCommand_pan,
																											 this.separatorCommand2,
																											 this.buttonCommand_select});
			this.toolControl1.Location = new System.Drawing.Point(0, 0);
			this.toolControl1.Name = "toolControl1";
			this.toolControl1.Size = new System.Drawing.Size(480, 27);
			this.toolControl1.TabIndex = 2;
			// 
			// buttonCommand_print
			// 
			this.buttonCommand_print.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_print.Image")));
			this.buttonCommand_print.Tag = null;
			this.buttonCommand_print.Text = "";
			this.buttonCommand_print.Tooltip = "打印";
			this.buttonCommand_print.Click += new System.EventHandler(this.m_out_print_Click);
			// 
			// separatorCommand1
			// 
			this.separatorCommand1.Tag = null;
			// 
			// buttonCommand_out
			// 
			this.buttonCommand_out.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_out.Image")));
			this.buttonCommand_out.Tag = null;
			this.buttonCommand_out.Text = "";
			this.buttonCommand_out.Tooltip = "放大";
			this.buttonCommand_out.Click += new System.EventHandler(this.m_zoomout_Click);
			// 
			// buttonCommand_in
			// 
			this.buttonCommand_in.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_in.Image")));
			this.buttonCommand_in.Tag = null;
			this.buttonCommand_in.Text = "";
			this.buttonCommand_in.Tooltip = "缩小";
			this.buttonCommand_in.Click += new System.EventHandler(this.m_zoomin_Click);
			// 
			// buttonCommand_pan
			// 
			this.buttonCommand_pan.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_pan.Image")));
			this.buttonCommand_pan.Tag = null;
			this.buttonCommand_pan.Text = "";
			this.buttonCommand_pan.Tooltip = "平移";
			this.buttonCommand_pan.Click += new System.EventHandler(this.m_pan_Click);
			// 
			// separatorCommand2
			// 
			this.separatorCommand2.Tag = null;
			// 
			// buttonCommand_select
			// 
			this.buttonCommand_select.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_select.Image")));
			this.buttonCommand_select.Tag = null;
			this.buttonCommand_select.Text = "";
			this.buttonCommand_select.Tooltip = "选择";
			this.buttonCommand_select.Click += new System.EventHandler(this.buttonCommand_select_Click);
			// 
			// LayOut
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(480, 297);
			this.Controls.Add(this.axSuperLayout1);
			this.Controls.Add(this.toolControl1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Menu = this.mainMenu1;
			this.Name = "LayOut";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "地图打印输出";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.LayOut_Closing);
			((System.ComponentModel.ISupportInitialize)(this.axSuperLayout1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.toolControl1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void m_page_set_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.PageSetup();
		}

		private void m_print_set_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LayoutSetup();
			
		}

		private void m_out_bmp_Click(object sender, System.EventArgs e)
		{
            SaveFileDialog mysave = new SaveFileDialog();
			mysave.Title="输出图片";
			mysave.Filter="位图文件(*.bmp)|*.bmp";
			if(mysave.ShowDialog() == DialogResult.OK)
			this.axSuperLayout1.OutputToFile(mysave.FileName,SuperMapLib.seFileType.scfBMP);
		}

		private void m_out_print_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.PrintLayout(true);
		}

		private void m_exit_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void m_draw_point_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPoint;
		}

		private void m_draw_linesect_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActLinesect;
		}

		private void m_draw_polyline_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPolyline;
		}

		private void m_draw_arc_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActArc;
		}

		private void m_draw_rect_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActRect;
		}

		private void m_draw_roundrect_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActRoundRect;
		}

		private void m_draw_ellipse_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActEllipse;
		}

		private void m_draw_polygon_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPolygon;
		}

		private void m_draw_text_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActText;
		}

		private void m_draw_arttext_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActText;
		}

		private void m_draw_map_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActMap;
		}

		private void m_draw_legend_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActLegend;
		}

		private void m_draw_scale_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActScale;
		}

		private void m_draw_direaction_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActDirection;
		}

		private void m_draw_table_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActTable;
		}

		private void m_draw_picture_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActMap;
		}

		private void m_null_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActNull;
		}

		private void m_zoomout_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActZoomIn;
		}

		private void m_zoomin_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActZoomOut;
		}

		private void m_pan_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActPalm;
		}

		private void m_height_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.ZoomToPageHeight();
		}

		private void menuItem3_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.ZoomToPage();
		}

		private void m_with_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.ZoomToPageWidth();
		}

		private void m_select_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActSel;

		}

		private void buttonCommand_select_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LytAction =SuperLayoutLib.seLytActionType.sclytActSel;

		}

		private void LayOut_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			this.axSuperLayout1.Disconnect();
		}

		private void m_layout_set_Click(object sender, System.EventArgs e)
		{
			this.axSuperLayout1.LayoutSetup();
		}

		private void menuItem4_Click(object sender, System.EventArgs e)
		{
			string helpfile = "help.chm";
			Help.ShowHelp(this, helpfile);
		}

				

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -