public MyHotels() { InitializeComponent(); var hotel = insertLinq.GetHotel(); foreach (var h in hotel) { if (h.Hash == LoginForm.Counter) { From.Items.Add(h.HFrom); } } }
public ValidationHotel() { InitializeComponent(); InsertLinq insertLinq = new InsertLinq(); var hotel = insertLinq.GetHotel(); foreach (var h in hotel) { if (h.HName + h.HNameHotel + h.HRoomFormat + h.HFrom + h.HTo == HotelForm.Counter) { HotelName.Text = h.HNameHotel; RoomFormat.Text = h.HRoomFormat; Date.Text = h.HFrom + "-" + h.HTo; Person.Text = h.HName; } } }