public Main() { InitializeComponent(); ii.Init(); this.countryComboBox.Items.Add("все"); this.countryComboBox.Items.AddRange(ii.Countries.Select(x => x.Value.Name).ToArray()); this.multiPaneControl.SelectedPage = this.multiPanePage1; this.healthComboBox.SelectedIndex = 0; this.countryComboBox.SelectedIndex = 0; this.locationComboBox.SelectedIndex = 0; this.appointmentComboBox.SelectedIndex = 0; this.serviceLevelComboBox.SelectedIndex = 0; this.buildingComboBox.SelectedIndex = 0; this.nutritionComboBox.SelectedIndex = 0; this.dateTimePicker.MaxDate = DateTime.Now; this.dateTimePicker.MinDate = DateTime.Now.AddYears(-99); this.splitContainer3.SplitterDistance = this.splitContainer3.Height - this.searchButton.Height - 16; this.splitContainer4.SplitterDistance = this.splitContainer4.Height - this.editButton.Height - 16; this.splitContainer1.SplitterDistance = this.groupBox5.Width + 26 + System.Windows.Forms.SystemInformation.VerticalScrollBarWidth; this.searchButton.Enabled = false; roomService = new List <CheckBox>(); roomService.Add(this.roomService1CheckBox); roomService.Add(this.roomService2CheckBox); roomService.Add(this.roomService3CheckBox); roomService.Add(this.roomService4CheckBox); roomService.Add(this.roomService5CheckBox); roomService.Add(this.roomService6CheckBox); roomService.Add(this.roomService7CheckBox); roomService.Add(this.roomService8CheckBox); roomService.Add(this.roomService9CheckBox); roomService.Add(this.roomService10CheckBox); roomService.Add(this.roomService11CheckBox); roomService.Add(this.roomService12CheckBox); hotelService = new List <CheckBox>(); hotelService.Add(this.hotelService1CheckBox); hotelService.Add(this.hotelService2CheckBox); hotelService.Add(this.hotelService3CheckBox); hotelService.Add(this.hotelService4CheckBox); hotelService.Add(this.hotelService5CheckBox); hotelService.Add(this.hotelService6CheckBox); hotelService.Add(this.hotelService7CheckBox); hotelService.Add(this.hotelService8CheckBox); hotelService.Add(this.hotelService9CheckBox); hotelService.Add(this.hotelService10CheckBox); hotelService.Add(this.hotelService11CheckBox); hotelService.Add(this.hotelService12CheckBox); hotelService.Add(this.hotelService13CheckBox); hotelService.Add(this.hotelService14CheckBox); hotelService.Add(this.hotelService15CheckBox); hotelService.Add(this.hotelService16CheckBox); hotelService.Add(this.hotelService17CheckBox); hotelService.Add(this.hotelService18CheckBox); hotelService.Add(this.hotelService19CheckBox); hotelService.Add(this.hotelService20CheckBox); hotelService.Add(this.hotelService21CheckBox); hotelService.Add(this.hotelService22CheckBox); hotelService.Add(this.hotelService23CheckBox); hotelService.Add(this.hotelService24CheckBox); hotelService.Add(this.hotelService25CheckBox); hotelService.Add(this.hotelService26CheckBox); hotelService.Add(this.hotelService27CheckBox); hotelService.Add(this.hotelService28CheckBox); hotelService.Add(this.hotelService29CheckBox); hotelService.Add(this.hotelService30CheckBox); hotelService.Add(this.hotelService31CheckBox); hotelService.Add(this.hotelService32CheckBox); hotelService.Add(this.hotelService33CheckBox); hotelService.Add(this.hotelService34CheckBox); hotelService.Add(this.hotelService35CheckBox); hotelService.Add(this.hotelService36CheckBox); hotelService.Add(this.hotelService37CheckBox); hotelService.Add(this.hotelService38CheckBox); hotelService.Add(this.hotelService39CheckBox); hotelService.Add(this.hotelService40CheckBox); hotelService.Add(this.hotelService41CheckBox); hotelService.Add(this.hotelService42CheckBox); hotelService.Add(this.hotelService43CheckBox); hotelService.Add(this.hotelService44CheckBox); hotelService.Add(this.hotelService45CheckBox); childrenService = new List <CheckBox>(); childrenService.Add(this.childrenService1CheckBox); childrenService.Add(this.childrenService2CheckBox); childrenService.Add(this.childrenService3CheckBox); childrenService.Add(this.childrenService4CheckBox); childrenService.Add(this.childrenService5CheckBox); }