Exemple #1
0
        public MyHotels()
        {
            InitializeComponent();
            var hotel = insertLinq.GetHotel();

            foreach (var h in hotel)
            {
                if (h.Hash == LoginForm.Counter)
                {
                    From.Items.Add(h.HFrom);
                }
            }
        }
Exemple #2
0
        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;
                }
            }
        }