Exemple #1
0
        private void BtnNewHotel_Click(object sender, EventArgs e)
        {
            frmHotelOfferDetails details = new frmHotelOfferDetails();

            details.AutoScroll  = false;
            details.WindowState = FormWindowState.Maximized;
            details.TopLevel    = false;
            this.Parent.Controls.Add(details);
            details.Show();
        }
Exemple #2
0
        private void OfferGrid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var id = offerGrid.SelectedRows[0].Cells[0].Value;

            frmHotelOfferDetails frm = new frmHotelOfferDetails(int.Parse(id.ToString()))
            {
                AutoScroll  = false,
                TopLevel    = false,
                WindowState = FormWindowState.Maximized
            };

            this.Parent.Controls.Add(frm);
            frm.Show();
        }