Пример #1
0
        private void InitializeDatePicker()
        {
            Date_Picker.FirstDayOfWeek = Main_Calendar.Instance.cmbFirstDayOfWeek.SelectedIndex + 1;

            XtremeCalendarControl.CalendarControl pCalendarOcx =
                ((XtremeCalendarControl.CalendarControl)(Main_Calendar.Instance.wndCalendarControl.GetOcx()));

            Date_Picker.AttachToCalendar(pCalendarOcx);
        }
Пример #2
0
        private void InitializeDatePicker()
        {
            //Set Auto-size to false to force the number of rows and columns
            //DatePicker.AutoSize = false;
            //DatePicker.ColumnCount = 6;
            //DatePicker.RowCount = 5;

            DatePicker.FirstDayOfWeek = frmMain.Instance.cmbFirstDayOfWeek.SelectedIndex + 1;

            XtremeCalendarControl.CalendarControl pCalendarOcx =
                ((XtremeCalendarControl.CalendarControl)(frmMain.Instance.wndCalendarControl.GetOcx()));

            DatePicker.AttachToCalendar(pCalendarOcx);
        }