Used for Interlinear context menu items to Add a new InterlinLineSpec for a flid that is currently hidden.
Inheritance: System.Windows.Forms.ToolStripMenuItem
Exemplo n.º 1
0
        private void AddNewLineMenuItem(ToolStripMenuItem addLineSubMenu, InterlinLineChoices curLineChoices)
        {
            // Add menu options to add lines of flids that are in default list, but don't currently appear.
            var unusedSpecs = GetUnusedSpecs(curLineChoices);

            foreach (var specToAdd in unusedSpecs)
            {
                var menuItem = new AddLineMenuItem(specToAdd.Flid)
                {
                    Text = specToAdd.ToString()
                };
                menuItem.Click += addLineItem_Click;
                addLineSubMenu.DropDownItems.Add(menuItem);
            }
        }
Exemplo n.º 2
0
		private void AddNewLineMenuItem(ToolStripMenuItem addLineSubMenu, InterlinLineChoices curLineChoices)
		{
			// Add menu options to add lines of flids that are in default list, but don't currently appear.
			var unusedSpecs = GetUnusedSpecs(curLineChoices);
			foreach (var specToAdd in unusedSpecs)
			{
				var menuItem = new AddLineMenuItem(specToAdd.Flid) { Text = specToAdd.ToString() };
				menuItem.Click += addLineItem_Click;
				addLineSubMenu.DropDownItems.Add(menuItem);
			}
		}