public int CompareTo(object obj) { if (obj == null) { return(1); } Systeme s = obj as Systeme; if (s != null) { return(this.priority.CompareTo(s.priority)); } else { throw new ArgumentException("Object is not a Temperature"); } }
public void RemoveSystem(Systeme s) { systemList.Remove(s); s.RemoveFromEngine(this); }
public void AddSystem(Systeme s, Systeme.Priority p) { s.priority = p; s.AddIntoEngine(this); systemList.Add(s); }