Beispiel #1
0
		private void CreateMenu()
		{
			#region Menu Bar

			int index = 100; 

			MenuBar menu = new MenuBar();

			menu.IsVisible = true;
			menu.Docking = System.Windows.Forms.DockStyle.Top;
			menu.Size = new System.Drawing.Size(20, 20);
			menu.RelitiveZIndex = index; 
			Controls.Add(menu);

			foreach (PanelBase panel in m_Panels)
			{
				panel.AddMenuItems(menu);
			}

			#endregion
		}
Beispiel #2
0
		public abstract void AddMenuItems(MenuBar menu);