Beispiel #1
0
        protected override void accionBoton(System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            BajaHotel bajaHotel = new BajaHotel(Convert.ToInt32(dataGridViewHoteles.Rows[e.RowIndex].Cells["Id_Hotel"].Value));

            Hide();
            bajaHotel.Show();
        }
Beispiel #2
0
        private void buttonBajaHotel_Click(object sender, EventArgs e)
        {
            DataTable      dtH           = new DataTable();
            string         commandString = "SELECT hote_id FROM DERROCHADORES_DE_PAPEL.Hotel WHERE hote_id = @id";
            SqlDataAdapter sda           = UtilesSQL.crearDataAdapter(commandString);

            sda.SelectCommand.Parameters.AddWithValue("@id", dataGridViewHoteles.CurrentRow.Cells[0].Value);
            sda.Fill(dtH);
            this.Hide();
            Form f = new BajaHotel(Int32.Parse(dtH.Rows[0][0].ToString()));

            limpiarTodo();
            f.ShowDialog();
            this.Show();
        }
Beispiel #3
0
        private void bajaHotel_Click(object sender, EventArgs e)
        {
            var baja = new AbmHotel.BajaHotel(_main.session);

            baja.Show();
        }