/// <summary> /// Construtor da classe /// </summary> public OWWebDateTimeEdit() { //----------------------------------------------------------- // Inicializar o objecto do tipo OWWebDateChooser do controlo //----------------------------------------------------------- DateChooser = new OWWebDateChooser(); }
/// <summary> /// Criação dos controlos na página /// </summary> protected override void CreateChildControls() { this.DateChooser = new OWWebDateChooser(); this.DateChooser.ID = this.ID + "DateChooser"; this.DateChooser.Width = this.DateChooserWidth; this.DateChooser.Visible = this.ShowDateChooser; this.DateChooser.ReadOnly = this.ReadOnly; this.ClientSideEvents.ValueChange = "OnValueChange"; this.Controls.Add(this.DateChooser); //------------------------------------------------------------ // Definição dos eventos do DateChooser //------------------------------------------------------------ this.SetDateChooserEvent(); base.CreateChildControls(); }