예제 #1
0
 public static AltaHabitacion obtenerInstancia()
 {
     if (instancia == null)
     {
         instancia = new AltaHabitacion();
     }
     return(instancia);
 }
예제 #2
0
        private void alta_Click(object sender, EventArgs e)
        {
            dtHab.Clear();
            this.Hide();
            AltaHabitacion f1 = new AltaHabitacion(idH);

            f1.ShowDialog();
            this.Show();
        }
예제 #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            AltaHabitacion alta = new AltaHabitacion();

            this.Hide();

            alta.ShowDialog();

            this.Show();

            if (alta.Result == DialogResult.OK)
            {
                RefreshData();
            }
        }
예제 #4
0
        private void buttonNuevoRegimen_Click(object sender, EventArgs e)
        {
            AltaHabitacion alta = new AltaHabitacion();

            alta.Show();
        }
예제 #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Hide();
     AltaHabitacion.obtenerInstancia().Show();
 }