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

📄 menumanage.cs

📁 汽车销售公司ERP进销存系统 汽车销售公司ERP进销存系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using CallCenter.BusinessLayer;
using CallCenter.DALFactory;
using CallCenter.IDAL;
using CallCenter.Modules;
using CallCenter.OracleDAL;
using System.Data;
namespace CallCenter.BusinessInterfaces.MainForms
{
	/// <summary>
	/// MenuManage 的摘要说明。
	/// </summary>
	public class MenuManage : System.Windows.Forms.Form
	{
		private CallCenter.BusinessInterfaces.MainForms.HStatusBar hStatusBar1;
		private System.Windows.Forms.StatusBarPanel statusBarPanel1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public MenuManage()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			ResetAllControlsBackColor(this.hStatusBar1);
//			this.hStatusBar1.BackColor=Color.Red;
			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}
		private void ResetAllControlsBackColor(Control control)
		{
			control.BackColor = Color.Red;
			control.ForeColor = SystemColors.ControlText;
			if(this.HasChildren)
			{
				// Recursively call this method for each child control.
				foreach(Control childControl in control.Controls)
				{
					ResetAllControlsBackColor(childControl);
				}
			}
		}

		public static void Main()
		{
			Application.EnableVisualStyles();

			Application.DoEvents(); 
			Application.Run(new MenuManage());
		}
	
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
	
		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.hStatusBar1 = new CallCenter.BusinessInterfaces.MainForms.HStatusBar();
			this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
			this.button1 = new System.Windows.Forms.Button();
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
			this.SuspendLayout();
			// 
			// hStatusBar1
			// 
			this.hStatusBar1.Location = new System.Drawing.Point(0, 471);
			this.hStatusBar1.Name = "hStatusBar1";
			this.hStatusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
																						   this.statusBarPanel1});
			this.hStatusBar1.setColor = System.Drawing.SystemColors.Control;
			this.hStatusBar1.ShowPanels = true;
			this.hStatusBar1.Size = new System.Drawing.Size(568, 22);
			this.hStatusBar1.TabIndex = 0;
			this.hStatusBar1.Text = "hStatusBar1";
			// 
			// statusBarPanel1
			// 
			this.statusBarPanel1.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
			this.statusBarPanel1.Text = "statusBarPanel1";
			// 
			// button1
			// 
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button1.Location = new System.Drawing.Point(264, 168);
			this.button1.Name = "button1";
			this.button1.TabIndex = 1;
			this.button1.Text = "button1";
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem1,
																					  this.menuItem2});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.OwnerDraw = true;
			this.menuItem1.Text = "dfgfdgfdg";
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "";
			// 
			// MenuManage
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.GrayText;
			this.ClientSize = new System.Drawing.Size(568, 493);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.hStatusBar1);
			this.Menu = this.mainMenu1;
			this.Name = "MenuManage";
			this.Text = "MenuManage";
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

	
	
	}
}

⌨️ 快捷键说明

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