Exemplo n.º 1
0
        private void dgvHallDetails_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            frmReceptionist f2 = new frmReceptionist("hallbooking", txtCusID1.Text);

            f2.cmbMrMsH.Text         = this.dgvHallDetails.CurrentRow.Cells[1].Value.ToString();
            f2.txtFirstnamehall.Text = this.dgvHallDetails.CurrentRow.Cells[2].Value.ToString();
            f2.txtLastnameHall.Text  = this.dgvHallDetails.CurrentRow.Cells[3].Value.ToString();

            f2.txtNIChall.Text     = this.dgvHallDetails.CurrentRow.Cells[5].Value.ToString();
            f2.txtAddresshall.Text = this.dgvHallDetails.CurrentRow.Cells[6].Value.ToString();
            f2.txtMobilehall.Text  = this.dgvHallDetails.CurrentRow.Cells[7].Value.ToString();
            f2.txtEmailhall.Text   = this.dgvHallDetails.CurrentRow.Cells[8].Value.ToString();
            f2.cmbHallpackage.Text = this.dgvHallDetails.CurrentRow.Cells[9].Value.ToString();
            DateTime chkinHall = DateTime.Parse(this.dgvHallDetails.CurrentRow.Cells[10].Value.ToString());

            f2.chkinDate.Value = chkinHall;

            DateTime chkoutHall = DateTime.Parse(this.dgvHallDetails.CurrentRow.Cells[11].Value.ToString());

            f2.chkoutDate.Value = chkoutHall;
            f2.txtCapacity.Text = this.dgvHallDetails.CurrentRow.Cells[12].Value.ToString();
            f2.txtNoperson.Text = this.dgvHallDetails.CurrentRow.Cells[13].Value.ToString();
            f2.txtPrice.Text    = this.dgvHallDetails.CurrentRow.Cells[14].Value.ToString();
            f2.pnlHallbooking.BringToFront();
            f2.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void dgvCustomerDetails_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            frmReceptionist f2 = new frmReceptionist("roomBooking", txtCusID.Text);

            f2.cmbMrMrs.Text     = this.dgvCustomerDetails.CurrentRow.Cells[1].Value.ToString();
            f2.txtFirstname.Text = this.dgvCustomerDetails.CurrentRow.Cells[2].Value.ToString();
            f2.txtLastname.Text  = this.dgvCustomerDetails.CurrentRow.Cells[3].Value.ToString();

            f2.txtNic.Text     = this.dgvCustomerDetails.CurrentRow.Cells[5].Value.ToString();
            f2.txtAddress.Text = this.dgvCustomerDetails.CurrentRow.Cells[6].Value.ToString();
            f2.txtMobile.Text  = this.dgvCustomerDetails.CurrentRow.Cells[7].Value.ToString();
            f2.txtEmail.Text   = this.dgvCustomerDetails.CurrentRow.Cells[8].Value.ToString();
            f2.cmbPackage.Text = this.dgvCustomerDetails.CurrentRow.Cells[9].Value.ToString();
            DateTime chkin = DateTime.Parse(this.dgvCustomerDetails.CurrentRow.Cells[10].Value.ToString());

            f2.chkinDate.Value = chkin;

            DateTime chkout = DateTime.Parse(this.dgvCustomerDetails.CurrentRow.Cells[11].Value.ToString());

            f2.chkoutDate.Value   = chkout;
            f2.txtNoofrooms.Text  = this.dgvCustomerDetails.CurrentRow.Cells[12].Value.ToString();
            f2.txtNoofadults.Text = this.dgvCustomerDetails.CurrentRow.Cells[13].Value.ToString();
            f2.txtNoofchild.Text  = this.dgvCustomerDetails.CurrentRow.Cells[14].Value.ToString();
            f2.pnlRoombooking.BringToFront();
            f2.Show();
            this.Close();
        }
Exemplo n.º 3
0
        private void availabil_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (close)
            {
                //DialogResult result = MessageBox.Show("Are you sure want to Exit", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                //if (result == DialogResult.Yes)
                //{
                close = false;
                this.Close();
                frmReceptionist f = new frmReceptionist();
                f.Show();



                //    }
                //    else
                //    {
                //        e.Cancel = true;


                //    }
                //}
            }
        }