public void Add(string caterogy, MyTask template) { foreach (EngineCaterogy caterogy2 in this._engineCaterogys) { if (caterogy2.Name.Equals(caterogy)) { caterogy2.Add(template); return; } } EngineCaterogy caterogy3 = new EngineCaterogy(caterogy); caterogy3.Add(template); this.Add(caterogy3); }
private void Add(EngineCaterogy caterogy) { this._engineCaterogys.Add(caterogy); }