Ejemplo n.º 1
0
        private string GetDateTimePickerHtml(DateTimePickerControl control)
        {
            control.FillData();
            ControlFilterRefresh(control);
            string id = GetControlID(control);

            return(string.Format("<input style=\"{0}\" type=\"date\" name=\"{1}\" value=\"{2}\" onchange=\"{3}\" id=\"{4}\"/>",
                                 // style
                                 GetDateTimePickerStyle(control),
                                 // name
                                 control.Name,
                                 // value
                                 control.Value.ToString(DateTimePickerFormat),
                                 // onclick
                                 GetEvent(ONCHANGE, control, SILENT_RELOAD, $"document.getElementById('{id}').value"),
                                 // title
                                 id
                                 ));
        }
Ejemplo n.º 2
0
 private string GetDateTimePickerStyle(DateTimePickerControl control)
 {
     return($"{GetControlPosition(control)} {GetControlFont(control.Font)}");
 }
Ejemplo n.º 3
0
 private void DateTimePickerChange(DateTimePickerControl dp, string value)
 {
     dp.Value = DateTime.Parse(value);
     dp.OnValueChanged(null);
 }