private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     Vacancy v = new Vacancy();
     v.Description = XVacancyDescription.PValue.ToString();
     v.MaxPay = Convert.ToInt32(XMaxPay.Text);
     v.MinPay = Convert.ToInt32(XMinPay.Text);
     v.CompanyId = DataSaver.CurrentUser.Company.Id;
     DataBaseInterface.AddVacancy(DataSaver.UId, DataSaver.PasswordHash, v);
 }
        public static SearchResult Search(int uId, string passwordHash, string keyWord)
        {
            var     t = new SearchResult();
            Company c = new Company();

            c.Name = "jacobs";
            t.Companies.Add(c);
            User tuser = new User();

            tuser.Login = "******";
            tuser.Id    = 147;
            t.Users.Add(new User(tuser, null, null, null, null, null));
            Vacancy v = new Vacancy();

            v.AuthorName  = "Подколзин Андрей Юрьевич";
            v.Description = "Being an amazing combination of professionalism, creativity, inspiration and success Just Eat features as the biggest online takeaway marketplace in the world!";
            v.MinPay      = 1000;
            v.Name        = "Being an amazing combination";
            v.MaxPay      = int.MaxValue;
            t.Vacancies.Add(v);
            return(t);
        }
 public static void AddVacancy(int uId, string password, Vacancy v)
 {
 }
 public static Vacancy GetVavancyById(int uId, string password, int idForSearch)
 {
     Vacancy v = new Vacancy();
     v.AuthorName = "Подколзин Андрей Юрьевич";
     v.Description = "Being an amazing combination of professionalism, creativity, inspiration and success Just Eat features as the biggest online takeaway marketplace in the world!";
     v.MinPay = 1000;
     v.MaxPay = int.MaxValue;
     v.Name = "Being an amazing combination";
     return v;
 }
 public static SearchResult Search(int uId, string passwordHash, string keyWord)
 {
     var t = new SearchResult();
     Company c = new Company();
     c.Name = "jacobs";
     t.Companies.Add(c);
     User tuser = new User();
     tuser.Login = "******";
     tuser.Id = 147;
     t.Users.Add(new User(tuser, null, null, null, null, null));
     Vacancy v = new Vacancy();
     v.AuthorName = "Подколзин Андрей Юрьевич";
     v.Description = "Being an amazing combination of professionalism, creativity, inspiration and success Just Eat features as the biggest online takeaway marketplace in the world!";
     v.MinPay = 1000; 
     v.Name = "Being an amazing combination";
     v.MaxPay = int.MaxValue;
     t.Vacancies.Add(v);
     return t;
 }
 public static void AddVacancy(int uId, string password, Vacancy v)
 {
     
 }
		public VacancyShower(Vacancy v)
		{
			this.v=v;
			this.InitializeComponent();
			_construct();
		}
 public VacancyShower(Vacancy v)
 {
     this.v = v;
     this.InitializeComponent();
     _construct();
 }