public void Removes(MEDICAMENT medicament) { if (Lekarstvoes.TryGetValue(medicament, out int count)) { Lekarstvoes[medicament] = --count; } else { Lekarstvoes.Remove(medicament); } }
public void Add(MEDICAMENT medicament) { if (Lekarstvoes.TryGetValue(medicament, out int count)) { Lekarstvoes[medicament] = ++count; } else { Lekarstvoes.Add(medicament, 1); } }