private void nuevaReservacionToolStripMenuItem_Click(object sender, EventArgs e) { FormNuevaReservacion form = new FormNuevaReservacion(); form.MdiParent = this; form.Show(); }
private void dataListado_DoubleClick(object sender, EventArgs e) { FormNuevaReservacion form = FormNuevaReservacion.GetInstancia(); FormEditarReservacion form2 = FormEditarReservacion.GetInstancia(); string par1, par2, par3, par4, par5, par6, par7, par8, par9; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["HAB_ID"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["#HABITACION"].Value); par3 = Convert.ToString(this.dataListado.CurrentRow.Cells["HAB_TIPO"].Value); par4 = Convert.ToString(this.dataListado.CurrentRow.Cells["HAB_NUM_CAMAS"].Value); par5 = Convert.ToString(this.dataListado.CurrentRow.Cells["PRECIO"].Value); par6 = Convert.ToString(this.dataListado.CurrentRow.Cells["HAB_ESTADO"].Value); par7 = Convert.ToString(this.dateTimePicker1.Value.ToShortDateString()); par8 = Convert.ToString(this.dateTimePicker2.Value.ToShortDateString()); par9 = DateTime.Now.ToShortDateString(); form.SetHabitacion(par1, par2, par3, par4, par5, par6, par7, par8, par9); form2.SetHabitacion(par1, par2, par3, par4, par5, par6, par7, par8, par9); form.SetCalculateDays(dateTimePicker1.Value, dateTimePicker2.Value); form2.SetCalculateDays(dateTimePicker1.Value, dateTimePicker2.Value); form.newDate = dateTimePicker2.Value; form.oldDate = dateTimePicker1.Value; form2.newDate = dateTimePicker2.Value; form2.oldDate = dateTimePicker1.Value; this.Hide(); }
public static FormNuevaReservacion GetInstancia() { if (_Instancia == null) { _Instancia = new FormNuevaReservacion(); } return(_Instancia); }
private void dataListado_DoubleClick(object sender, EventArgs e) { FormNuevaReservacion form = FormNuevaReservacion.GetInstancia(); string par1, par2, par3, par4; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["EMP_ID"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["EMP_NOMBRES"].Value); par3 = Convert.ToString(this.dataListado.CurrentRow.Cells["EMP_APELLIDOS"].Value); par4 = Convert.ToString(this.dataListado.CurrentRow.Cells["EMP_TURNO"].Value); form.SetEmpleado(par1, par2, par3, par4); this.Hide(); }
private void dataListado_DoubleClick(object sender, EventArgs e) { FormNuevaReservacion form = FormNuevaReservacion.GetInstancia(); string par1, par2, par3, par4, par5, par6, par7, par8, par9, par10; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_ID"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_NOMBRES"].Value); par3 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_APELLIDOS"].Value); par4 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_TIPO_DOCUMENTO"].Value); par5 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_N_DOCUMENTO"].Value); par6 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_FECHA_NAC"].Value); par7 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_GENERO"].Value); par8 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_TELEFONO"].Value); par9 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_PAIS"].Value); par10 = Convert.ToString(this.dataListado.CurrentRow.Cells["CLI_EMAIL"].Value); form.SetCliente(par1, par2, par3, par4, par5, par6, par7, par8, par9, par10); this.Hide(); }
private void btnAgregar_Click(object sender, EventArgs e) { FormNuevaReservacion form = FormNuevaReservacion.GetInstancia(); form.ShowDialog(); }
private void FormNuevaReservacion_FormClosed(object sender, FormClosedEventArgs e) { _Instancia = null; }
private void button1_Click(object sender, EventArgs e) { _Instancia = null; this.Close(); }