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; } }
/// <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); }