Exemplo n.º 1
0
        public override void LoadSave(object obj)
        {
            PromoServiceSave save = obj as PromoServiceSave;

            if (save == null)
            {
                LoadDefaults();
            }
            else
            {
                save.Validate();
                Codes.Clear();
                Codes.AddRange(save.codes);
                IsLoaded = true;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Appends all of the elements in the specified GCodeCollector to the end of this list.
 /// </summary>
 /// <param name="codes"> GCodeCollector containing elements to be added to this list</param>
 public void addCode(GCodeCollector codes)
 {
     Codes.AddRange(codes.Codes);
 }