public override IEnumerable <Gizmo> CompGetGizmosExtra() { foreach (var a in CopyPasteRestrictionSetting.CopyPasteRestrictSettingsGizmo(this.filter)) { yield return(a); } }
private static Gizmo PasteGizmo(IEntityFilter filter) { Command_Action pasteGizmo = new Command_Action(); pasteGizmo.icon = pasteGizmoIcon; pasteGizmo.action = () => CopyPasteRestrictionSetting.PasteTo(filter); pasteGizmo.defaultIconColor = Color.white; pasteGizmo.defaultLabel = "PasteRestrictionLabel".Translate(); pasteGizmo.defaultDesc = "PasteRestrictionDesc".Translate(); pasteGizmo.groupKey = gizmoGroupKey + 1; return(pasteGizmo); }
private static Gizmo CopyGizmo(IEntityFilter filter) { Command_Action copyGizmo = new Command_Action(); copyGizmo.icon = copyGizmoIcon; copyGizmo.action = () => CopyPasteRestrictionSetting.CopyFrom(filter); copyGizmo.defaultIconColor = Color.white; copyGizmo.defaultLabel = "CopyRestrictionLabel".Translate(); copyGizmo.defaultDesc = "CopyRestrictionDesc".Translate(); copyGizmo.groupKey = gizmoGroupKey; return(copyGizmo); }