public FormReadCountry(HotelReservationContext context, ReadControler read)
 {
     InitializeComponent();
     this.context = context;
     this.read    = read;
     countries    = read.CounrtiesList();
 }
 public FormReadRoom(HotelReservationContext context, ReadControler read)
 {
     InitializeComponent();
     this.context = context;
     this.read    = read;
     this.rooms   = read.RoomsList();
 }
 public FormSystemOfHotelsReservation(HotelReservationContext context, InsertControler insert, ReadControler read, MessageApp message)
 {
     InitializeComponent();
     this.context = context;
     this.insert  = insert;
     this.read    = read;
     this.message = message;
 }
 public FormReservation(HotelReservationContext context, ReadControler read, InsertControler insert)
 {
     InitializeComponent();
     this.context = context;
     this.read    = read;
     this.insert  = insert;
     LoadFreeRooms();
     ResetLabel("-");
 }
        public FormAddRoom(HotelReservationContext context, ReadControler read)
        {
            InitializeComponent();
            this.context = context;
            this.read    = read;
            List <RoomType> listTypes = read.AllTypes();

            foreach (var t in listTypes)
            {
                comboBox1.Items.Add(t.Type);
            }
            comboBox1.Text = comboBox1.Items[0].ToString();
        }
        public AddClients(HotelReservationContext context)
        {
            InitializeComponent();
            this.context = context;
            message      = new MessageApp();
            insert       = new InsertControler();
            read         = new ReadControler(context);
            List <Town>    towns     = read.TownsList();
            List <Country> countries = read.CounrtiesList();

            foreach (var t in towns)
            {
                comboBox1.Items.Add(t.Name);
            }
            foreach (var c in countries)
            {
                comboBox2.Items.Add(c.Name);
            }
            for (int i = 16; i < 120; i++)
            {
                comboBox3.Items.Add(i);
            }
        }
 public FormClearRoom(HotelReservationContext context)
 {
     InitializeComponent();
     this.context = context;
     read         = new ReadControler(context);
 }