public fmr_Reservacion() : base(Gtk.WindowType.Toplevel) { this.Build(); dtr = new dtReservacion(); this.txtNum.Text = Convert.ToString(dtr.GetNumReserv() + 1); txtFecha.Text = ObtenerFecha(); }
public fmr_Reservacion(int id_reservacion) : base(Gtk.WindowType.Toplevel) { this.Build(); dtr = new dtReservacion(); vr = dtr.ObtenerReservacion(id_reservacion); edicion = true; txtNum.Text = Convert.ToString(vr.Numero); txtFecha.Text = Convert.ToString(vr.Fecha); txtNombres.Text = vr.Nombres; txtApellidos.Text = vr.Apellidos; txtCedula.Text = vr.Cedula; tbr.Id_reservacion = id_reservacion; //this.txtNum.Text = Convert.ToString(dtr.GetNumReserv() + 1); //txtFecha.Text = ObtenerFecha(); CargarTabla(id_reservacion); }