Ejemplo n.º 1
0
 public override IEnumerable <Gizmo> CompGetGizmosExtra()
 {
     foreach (var a in CopyPasteRestrictionSetting.CopyPasteRestrictSettingsGizmo(this.filter))
     {
         yield return(a);
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }