public DateChooserPanel(Calendar calendar, bool controlPanel)
{
int num1 = controlPanel ? 1 : 0;
base.\u002Ector((LayoutManager) new BorderLayout());
DateChooserPanel dateChooserPanel = this;
this.yearSelectionRange = 20;
this.dateFont = new Font("SansSerif", 0, 10);
this.refreshing = false;
this.chosenDateButtonColor = UIManager.getColor((object) "textHighlight");
this.chosenMonthButtonColor = UIManager.getColor((object) "control");
this.chosenOtherButtonColor = UIManager.getColor((object) "controlShadow");
this.chosenDate = calendar;
this.firstDayOfWeek = calendar.getFirstDayOfWeek();
this.WEEK_DAYS = new int[7];
for (int index1 = 0; index1 < 7; ++index1)
{
int[] numArray = this.WEEK_DAYS;
int index2 = index1;
int num2 = this.firstDayOfWeek + index1 - 1;
int num3 = 7;
int num4 = -1;
int num5 = (num3 != num4 ? num2 % num3 : 0) + 1;
numArray[index2] = num5;
}
((Container) this).add((Component) this.constructSelectionPanel(), (object) "North");
((Container) this).add((Component) this.getCalendarPanel(), (object) "Center");
if (num1 != 0)
((Container) this).add((Component) this.constructControlPanel(), (object) "South");
this.setDate(calendar.getTime());
}