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