Esempio n. 1
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int             rowIndex    = dataGridView1.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow = dataGridView1.Rows[rowIndex];

            if (ParentFormBnumber != null)
            {
                ParentFormBnumber.hotelSelection(Convert.ToInt32(selectedRow.Cells[0].Value));

                this.Hide();
                this.Close();
            }

            if (ParentFormCredit != null)
            {
                ParentFormCredit.hotelSelection(Convert.ToInt32(selectedRow.Cells[0].Value));

                this.Hide();
                this.Close();
            }

            if (ParentFormCreditSheet != null)
            {
                ParentFormCreditSheet.hotelSelection(Convert.ToInt32(selectedRow.Cells[0].Value));

                this.Hide();
                this.Close();
            }

            if (ParentFormBaseMenu != null)
            {
                ParentFormBaseMenu.hotelSelection(Convert.ToInt32(selectedRow.Cells[0].Value));

                this.Hide();
                this.Close();
            }
        }