/// <summary> /// Constructor del formulario. /// Se configuran de los selectores de fecha y hora /// </summary> public AddEvento() { InitializeComponent(); tbId.Text = (EventoDAO.SelectMaxId() + 1).ToString(); dtimeDia.MinDate = DateTime.Now; dtimeHora.CustomFormat = "HH:mm"; dtimeHora.Format = DateTimePickerFormat.Custom; dtimeHora.ShowUpDown = true; tbId.Enabled = false; }