コード例 #1
0
        private void AddLineConflict(object obj)
        {
            string line = obj as string;

            if (line != null && !LineConflicts.Contains(line))
            {
                LineConflicts.Add(line);
            }
        }
コード例 #2
0
        private void RemoveLineConflict(object obj)
        {
            string line = obj as string;

            if (line != null)
            {
                LineConflicts.Remove(line);
            }
        }
コード例 #3
0
 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);
     }
 }