private void AddLineConflict(object obj) { string line = obj as string; if (line != null && !LineConflicts.Contains(line)) { LineConflicts.Add(line); } }
private void RemoveLineConflict(object obj) { string line = obj as string; if (line != null) { LineConflicts.Remove(line); } }
public void Save(Stream stream, IFormatter formatter) { formatter.Serialize(stream, MachineConflicts.ToList()); formatter.Serialize(stream, LinesCanRunOn.ToList()); formatter.Serialize(stream, LineConflicts.ToList()); formatter.Serialize(stream, Name); formatter.Serialize(stream, ConfigurationList.Count); foreach (var configurationGroup in ConfigurationList) { configurationGroup.Save(stream, formatter); } }