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

📄 mainform.cs

📁 美国移民局软件,请大家不要用于商业用途!站长为什么还不开通我的帐号呀
💻 CS
📖 第 1 页 / 共 5 页
字号:
			this.ClientSize = new System.Drawing.Size(792, 573);
			this.Controls.Add(this._MainFormAutoHideControl);
			this.Controls.Add(this.windowDockingArea1);
			this.Controls.Add(this._MainFormUnpinnedTabAreaTop);
			this.Controls.Add(this._MainFormUnpinnedTabAreaBottom);
			this.Controls.Add(this._MainFormUnpinnedTabAreaLeft);
			this.Controls.Add(this._MainFormUnpinnedTabAreaRight);
			this.Controls.Add(this._MainForm_Toolbars_Dock_Area_Left);
			this.Controls.Add(this._MainForm_Toolbars_Dock_Area_Right);
			this.Controls.Add(this._MainForm_Toolbars_Dock_Area_Top);
			this.Controls.Add(this._MainForm_Toolbars_Dock_Area_Bottom);
			this.Controls.Add(this.ultraStatusBar1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.IsMdiContainer = true;
			this.Name = "MainForm";
			this.Text = "ImmigrationTracker - Office Enterprise";
			((System.ComponentModel.ISupportInitialize)(this.ultraExplorerBar1)).EndInit();
			this.ultraStatusBar1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.ultraDockManager1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.ultraTabbedMdiManager1)).EndInit();
			this.windowDockingArea1.ResumeLayout(false);
			this.dockableWindow1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new MainForm());
		}

		/// <summary>
		/// Left or right click on Navigation Bar.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ultraExplorerBar1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar Bar = (Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar)sender;
			switch (e.Button) 
			{ 
				case MouseButtons.Left: 
					try
					{
						NewChildForm(Bar.ActiveItem.Key);
					} 
					catch {}
					break; 
				case MouseButtons.Right: 
					MessageBox.Show(this,"Right Button Click" ); 
					break; 
				case MouseButtons.Middle: 
					break; 
				default: 
					break; 
			}
		}
		
		/// <summary>
		/// Creates an instance of new child forms. Has logic to limit specific child forms to one instance only (like HomePage)
		/// </summary>
		/// <param name="FormName"></param>
		private void NewChildForm (string FormName)
		{
			Form childForm = null;
			switch (FormName)
			{
				case "HomePage":
					foreach(Form form in this.MdiChildren) 
					{ 
						if(form is plugins.HomePage.HomePage) 
						{ 
							childForm = (plugins.HomePage.HomePage)form; 
							break; 
						} 
					} 

					if( childForm != null) 
					{ 
						childForm.Show(); 
						childForm.Focus(); 
					} 
					else 
					{ 
						childForm = new plugins.HomePage.HomePage(); 
						childForm .MdiParent=this;
						childForm .Show(); 
						childForm .Focus(); 
					} 
					break;
				case "Communication":
					foreach(Form form in this.MdiChildren) 
					{ 
						if(form is plugins.Communication.Communication ) 
						{ 
							childForm = (plugins.Communication.Communication)form; 
							break; 
						} 
					} 

					if( childForm != null) 
					{ 
						childForm.Show(); 
						childForm.Focus(); 
					} 
					else 
					{ 
						childForm = new plugins.Communication.Communication(); 
						childForm .MdiParent=this; 
						childForm .Show(); 
						childForm .Focus(); 
					} 
					break;
				case "People":
					childForm = new plugins.People.People();
					childForm.MdiParent = this;
					childForm.Show();
					childForm.Focus();
					childForm.Text = "People [QuickName here...]";
					break;

				case "Organizations":
					childForm = new plugins.Organizations.Organizations();
					childForm.MdiParent = this;
					childForm.Show();
					childForm.Focus();
					childForm.Text = "Organizations [QuickName here...]";
					break;

				case "Activities":
					foreach(Form form in this.MdiChildren) 
					{ 
						if(form is plugins.Activities.Activities ) 
						{ 
							childForm = (plugins.Activities.Activities)form; 
							break; 
						} 
					} 

					if( childForm != null) 
					{ 
						childForm.Show(); 
						childForm.Focus(); 
					} 
					else 
					{ 
						childForm = new plugins.Activities.Activities();
						childForm .MdiParent=this; 
						childForm .Show(); 
						childForm .Focus(); 
					} 
					break;

				case "Cases":
					childForm = new plugins.Cases.Cases();
					childForm.MdiParent = this;
					childForm.Show();
					childForm.Focus();
					childForm.Text = "Cases";
					break;

				case "Contacts":
					childForm = new plugins.Contacts.Contacts();
					childForm.MdiParent = this;
					childForm.Show();
					childForm.Focus();
					childForm.Text = "Contacts";
					break;

				case "Reports":
#if ACTIVE_REPORTS
					foreach(Form form in this.MdiChildren) 
					{ 
						if(form is plugins.Reports.Reports ) 
						{ 
							childForm = (plugins.Reports.Reports)form; 
							break; 
						} 
					} 

					if( childForm != null) 
					{ 
						childForm.Show(); 
						childForm.Focus(); 
					} 
					else 
					{ 
						childForm = new plugins.Reports.Reports();
						childForm .MdiParent=this; 
						childForm .Show(); 
						childForm .Focus(); 
					} 
#endif
					break;
			}
		}


		private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.Ult

⌨️ 快捷键说明

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