// construction and disposing public BocDateTimeValue() { _commonStyle = new Style(); _dateTimeTextBoxStyle = new SingleRowTextBoxStyle(); _dateTextBoxStyle = new SingleRowTextBoxStyle(); _timeTextBoxStyle = new SingleRowTextBoxStyle(); _labelStyle = new Style(); _datePickerButton = new DatePickerButton(); }
void ReleaseDesignerOutlets() { if (CustomPickerButton != null) { CustomPickerButton.Dispose(); CustomPickerButton = null; } if (DatePickerButton != null) { DatePickerButton.Dispose(); DatePickerButton = null; } if (PickedLabel != null) { PickedLabel.Dispose(); PickedLabel = null; } }