public PUserReferences(char type, int id) { this.InitializeComponent(); if (type == 'c') { _comments = DataBaseInterface.GetCompanyReferences(DataSaver.UId, DataSaver.PasswordHash, id); } else { _comments = DataBaseInterface.GetUserReferences(DataSaver.UId, DataSaver.PasswordHash, id); } foreach (Comment c in _comments) { XCommentsShower.Add(c); } }