Ejemplo n.º 1
0
        public HtmlString CoreDatePicker(CoreDatePicker datePicker, string id)
        {
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_001c: Expected O, but got Unknown
            CoreDatePickerRenderer coreDatePickerRenderer = new CoreDatePickerRenderer();

            datePicker.ID = id;
            return(new HtmlString(coreDatePickerRenderer.RenderHtml(datePicker)));
        }
Ejemplo n.º 2
0
 public string RenderHtml(CoreDatePicker datePicker)
 {
     _model = datePicker;
     //if (DateTime.Now > CompiledOn.CompilationDate.AddDays(45.0))
     //{
     //	return "This is a 30-day trial version of CoreSuite for ASP.NET MVC which has expired.<br> Please, contact [email protected] for purchasing the product or for trial extension.";
     //}
     Guard.IsNotNullOrEmpty(_model.ID, "ID", "You need to set ID for this CoreDatePicker instance.");
     if (_model.DisplayMode == DatePickerDisplayMode.Standalone)
     {
         return(GetStandaloneJavascript());
     }
     return(GetControlEditorJavascript());
 }