Example #1
0
        private void sEARCHHOTELSToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Customer_SearchHotel search = new Customer_SearchHotel();

            search.MdiParent = this;
            //foreach (Control c in this.Controls)
            //    if (c is MenuStrip || c is Panel)
            //        c.Hide();
            search.Show();
        }
Example #2
0
        private void btnSearchHotels_Click(object sender, EventArgs e)
        {
            //Customer_BookHotel book = new Customer_BookHotel();
            //book.MdiParent = this;

            Customer_SearchHotel search = new Customer_SearchHotel();

            search.Height    = this.Height;
            search.Width     = this.Width;
            search.MdiParent = this;
            panel1.Hide();
            panel2.Hide();
            search.Show();
        }