/// <summary>
        /// The method sets the correct date (or datetime) property according
        /// to the property name. The DateT and DateTimeT structures of the
        /// ModulesManager are both converted to the DateTime structure. Thus
        /// we must know which function to call (SetPropertyDate or SetPropertyDateTime)
        /// </summary>
        /// <param name="e">Arguments of the propertyBag_GetValue event</param>
        /// <param name="box">Box where to set the property</param>
        protected void SetCorrectDateType(PropertySpecEventArgs e, IBoxModule box)
        {
            string propertyName = GetPropertyName(e.Property.Name, SelectedBox);

            //box.SetPropertyDate(e.Property.Name, (DateTime)e.Value);
            foreach (PropertyInfo pinfo in box.MadeInCreator.Properties)
            {
                if (pinfo.name == propertyName)
                {
                    if (pinfo.typeClassIceId == "::Ferda::Modules::DateTimeT")
                    {
                        box.SetPropertyDateTime(e.Property.Name, (DateTime)e.Value);
                    }
                    if (pinfo.typeClassIceId == "::Ferda::Modules::DateT")
                    {
                        box.SetPropertyDate(e.Property.Name, (DateTime)e.Value);
                    }
                }
            }
        }