Ejemplo n.º 1
0
        public EspackDateTimePicker()
        {
            CaptionLabel = new EspackLabel("", this)
            {
                AutoSize = true
            };
            //MinDate = DateTime.MinValue;
            Format        = DateTimePickerFormat.Custom;
            _customFormat = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern‌ + " " + System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern‌;
            Size          = new Size(130, 20);
            var _m = new Padding();

            _m          = base.Margin;
            _m.Top      = 16;
            base.Margin = _m;
            EspackTheme.changeControlFormat(this);
            CheckedChanged += EspackDateTimePicker_CheckedChanged;
        }
Ejemplo n.º 2
0
        //own properties
        //public DynamicRS DataSource { get; set; }
        //public string DisplayMember { get; set; }
        //public string ValueMember { get; set; }



        public EspackCheckedComboBox()
            : base()
        {
            CaptionLabel = new EspackLabel("", this)
            {
                AutoSize = true
            };
            CheckOnClick = true;
            //Format = DateTimePickerFormat.Custom;
            //CustomFormat = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern‌ + " " + System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern‌;
            var _m = new Padding();

            _m          = base.Margin;
            _m.Top      = 16;
            base.Margin = _m;
            EspackTheme.changeControlFormat(this);
            ItemCheck      += EspackCheckedComboBox_ItemCheck;
            DropDownClosed += EspackCheckedComboBox_DropDownClosed;
        }