예제 #1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count != 0)
     {
         string direccion = string.Format("{0} {1}", dataGridView1.SelectedCells[4].Value.ToString(),
                                          dataGridView1.SelectedCells[5].Value.ToString());
         Form f = new AltaHotel(this,
                                dataGridView1.SelectedCells[0].Value.ToString(),   //IDhotel
                                dataGridView1.SelectedCells[1].Value.ToString(),   //nombre
                                dataGridView1.SelectedCells[2].Value.ToString(),   //mail
                                dataGridView1.SelectedCells[3].Value.ToString(),   //telefono
                                dataGridView1.SelectedCells[4].Value.ToString(),   //calle
                                dataGridView1.SelectedCells[5].Value.ToString(),   //nro
                                dataGridView1.SelectedCells[7].Value.ToString(),   //cant estrellas
                                dataGridView1.SelectedCells[9].Value.ToString(),   //recarga estrellas
                                dataGridView1.SelectedCells[6].Value.ToString(),   //id ciudad
                                dataGridView1.SelectedCells[8].Value.ToString(),   //id pais
                                dataGridView1.SelectedCells[10].Value.ToString()); //fecha creacion
         f.Show();
     }
     else
     {
         MessageBox.Show("No hay datos que modificar", "No se puede modificar", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
 private void btnAlta_Click(object sender, EventArgs e)
 {
     AltaHotel levantarAlta = new AltaHotel(usuario);
     this.Hide();
     levantarAlta.ShowDialog();
     this.Show();
 }
예제 #3
0
        private void btnAlta_Click(object sender, EventArgs e)
        {
            AltaHotel levantarAlta = new AltaHotel(usuario);

            this.Hide();
            levantarAlta.ShowDialog();
            this.Show();
        }
예제 #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     AltaHotel alta = new AltaHotel();
     alta.Show();
 }