Exemple #1
0
        private void nuevo_Click(object sender, EventArgs e)
        {
            AltaHotel altaHotel = new AltaHotel();

            altaHotel.ShowDialog();
            obtenerHoteles();
        }
Exemple #2
0
 public static AltaHotel obtenerInstancia()
 {
     if (instancia == null)
     {
         instancia = new AltaHotel();
     }
     return(instancia);
 }
Exemple #3
0
        private void alta_Click(object sender, EventArgs e)
        {
            this.Hide();
            dtHoteles.Clear();
            buttonModificarHotel.Enabled = false;
            buttonBajaHotel.Enabled      = false;
            Form f1 = new AltaHotel(id);

            f1.ShowDialog();
            this.Show();
        }
Exemple #4
0
 private void btnHotelesCargar_Click(object sender, EventArgs e)
 {
     this.Hide();
     AltaHotel.obtenerInstancia().Show();
 }