Example #1
0
 public Macro()
 {
     _properties = new MacroPropertyCollection();
     _properties.CollectionChanged += PropertiesChanged;
     _addedProperties = new List<string>();
     _removedProperties = new List<string>();
 }
Example #2
0
 public Macro(IShortStringHelper shortStringHelper)
 {
     _alias                        = string.Empty;
     _shortStringHelper            = shortStringHelper;
     Properties                    = new MacroPropertyCollection();
     Properties.CollectionChanged += PropertiesChanged;
     _addedProperties              = new List <string>();
     _removedProperties            = new List <string>();
     _macroSource                  = string.Empty;
 }
    public object DeepClone()
    {
        var clone = new MacroPropertyCollection();

        foreach (IMacroProperty item in this)
        {
            clone.Add((IMacroProperty)item.DeepClone());
        }

        return(clone);
    }