public CPerson Add(string strFolderName) { try{ CPerson p = new CPerson(strFolderName); return(this.Add(p)); } catch (System.Exception e) { GeneaTools.ShowError(e.Message); return(null); } }
public void Add(CPerson FirstPerson, int x, int y) { if (this.Persons.Exist(FirstPerson.Guid)) { GeneaTools.ShowError(GeneaTools.ERR_1003, FirstPerson.Text); } else { this.Persons.Add(FirstPerson); FirstPerson.X = x; FirstPerson.Y = y; } }