public void Add(Scheme scheme) { if (!Schemes.ContainsKey(scheme)) { var history = new History(scheme); Schemes.Add(scheme, history); History.Add(history); } else { Schemes[scheme].Activations++; } SerializeSchemesHistory(); }
public History(Scheme scheme) { Scheme = scheme; Activations = 1; }