public PSearchForm(char type, int id)
        {
            InitializeComponent();
            List <Vacancy> result;

            if (type == 'c')
            {
                result = DataBaseInterface.GetCompanyVacancies(DataSaver.UId, DataSaver.PasswordHash, id);
            }
            else
            {
                result = DataBaseInterface.GetUserSubscribeNews(DataSaver.UId, DataSaver.PasswordHash);
            }

            foreach (Vacancy v in result)
            {
                XSearchResultList.Items.Add(new VacancyShower(v));
            }
        }