private void Initialize() { ErrorLabel.Visible = false; ErrorContractLabel.Visible = false; AllSumCheckBox.Visible = false; ClientPayments = new ClientPayments(ref ClientsPaymentsDataGrid, ref ClientContractDataGrid); TableCurrency = ClientPayments.TableCurrency(); TableClients = ClientPayments.TableClients(); TableFactory = ClientPayments.TableFactory(); ClientComboBox.DataSource = TableClients; ClientComboBox.DisplayMember = "ClientName"; ClientComboBox.ValueMember = "ClientID"; ClientContractComboBox.DataSource = TableClients; ClientContractComboBox.DisplayMember = "ClientName"; ClientContractComboBox.ValueMember = "ClientID"; ContractFilteComboBox.DataSource = ClientPayments.ClientContractBindingSource; ContractFilteComboBox.DisplayMember = "ContractNumber"; ContractFilteComboBox.ValueMember = "ContractId"; ContractFilteComboBox.Visible = false; PeriodButton.Visible = false; CalendarTo.Visible = false; FilterContractButton.Visible = false; ContractCalendarTo.Visible = false; }