示例#1
0
        public XtraFADatePicker()
        {
            ToolTipController.DefaultController.CalcSize += OnCalculateToolTip;
            ToolTipController.DefaultController.CustomDraw += OnCustomDrawToolTip;

            picker = new XtraFAMonthView();
            picker.ShowBorder = false;
            picker.SelectedDateTime = null;
            picker.Dock = DockStyle.Fill;
            picker.DoubleClick += OnDoubleClicked;
            picker.ButtonClicked += OnButtonClicked;
            picker.SelectedDateTimeChanged += OnSelectionChanged;

            popupContainerControl = new PopupContainerControl();
            popupContainerControl.Controls.Add(picker);

            Properties.PopupControl = popupContainerControl;
            Properties.QueryPopUp += OnEditorQueryPopup;

            popupContainerControl.Size = new Size(200, 200);
            popupContainerControl.PopupContainerProperties.PopupSizeable = false;
            popupContainerControl.PopupContainerProperties.CloseOnLostFocus = true;
            popupContainerControl.PopupContainerProperties.CloseOnOuterMouseClick = true;
            popupContainerControl.PopupContainerProperties.PopupSizeable = false;

            Text = string.Empty;
            Controls.Add(popupContainerControl);
            UpdateTheme();
        }
        public XtraFADatePicker()
        {
            ToolTipController.DefaultController.CalcSize   += OnCalculateToolTip;
            ToolTipController.DefaultController.CustomDraw += OnCustomDrawToolTip;

            picker                          = new XtraFAMonthView();
            picker.ShowBorder               = false;
            picker.SelectedDateTime         = null;
            picker.Dock                     = DockStyle.Fill;
            picker.DoubleClick             += OnDoubleClicked;
            picker.ButtonClicked           += OnButtonClicked;
            picker.SelectedDateTimeChanged += OnSelectionChanged;

            popupContainerControl = new PopupContainerControl();
            popupContainerControl.Controls.Add(picker);

            Properties.PopupControl = popupContainerControl;
            Properties.QueryPopUp  += OnEditorQueryPopup;

            popupContainerControl.Size = new Size(200, 200);
            popupContainerControl.PopupContainerProperties.PopupSizeable          = false;
            popupContainerControl.PopupContainerProperties.CloseOnLostFocus       = true;
            popupContainerControl.PopupContainerProperties.CloseOnOuterMouseClick = true;
            popupContainerControl.PopupContainerProperties.PopupSizeable          = false;

            Text = string.Empty;
            Controls.Add(popupContainerControl);
            UpdateTheme();
        }