Used for Interlinear context menu items to Add a new InterlinLineSpec for a flid that is currently hidden.
상속: System.Windows.Forms.ToolStripMenuItem
예제 #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);
            }
        }
예제 #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);
			}
		}