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

            foreach (var item in this)
            {
                clone.Add((IMacroProperty)item.DeepClone());
            }
            return(clone);
        }
Exemple #3
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;
 }