/// <summary> /// Set a function for all option on ToolStripMenuItem. /// </summary> /// <returns>ToolStripMenuItem: Represent a selectable option displayed on System.Windows.Forms.MenuStrip.</returns> protected override ToolStripMenuItem Menu_CustomSingleValueItem() { var item = new ToolStripMenuItem { Text = @"Set an Criterion" }; foreach (var val in Enum.GetValues(typeof(ObjectCriterion)).Cast <ObjectCriterion>()) { var it = Menu_AppendItem(item.DropDown, EnumDescription <ObjectCriterion> .Description(val), MenuClick); it.Tag = val; } return(item); }
/// <summary> /// Set a function for all option on ToolStripMenuItem. /// </summary> /// <returns>ToolStripMenuItem: Represent a selectable option displayed on System.Windows.Forms.MenuStrip.</returns> protected override ToolStripMenuItem Menu_CustomSingleValueItem() { int a = 0; var item = new ToolStripMenuItem { Text = @"Set an Orientation" }; foreach (var val in Enum.GetValues(typeof(ObjectOrientation)).Cast <ObjectOrientation>()) { var it = Menu_AppendItem(item.DropDown, EnumDescription <ObjectOrientation> .Description(val), MenuClick); it.Tag = val; a++; if (a == 2 | a == 8) { Menu_AppendSeparator(item.DropDown); } } return(item); }
/// <summary> /// Create a human friendly description of this data. /// </summary> public override string ToString() { return(EnumDescription <ObjectCriterion> .Description(Value.Constraint)); }
/// <summary> /// Create a human friendly description of this data. /// </summary> public override string ToString() { return(EnumDescription <GlobalNestingCriterion> .Description(Value.Constraint)); }