private void Materials_Load(object sender, EventArgs e) { try { //PictureBox2.ImageLocation = @"D:\Program Files\SolidWorks 2013\SolidWorks\data\graphics\Images\preview\light grey low gloss plastic.jpg"; ButtonOK.Enabled = false; BtnOkAndClose.Enabled = false; AddSelectAllCheckBox(DataGridConfig); CboColor.DisplayMember = "RAL"; CboColor.ValueMember = "HEX"; CboColor.DataSource = _sqlDll.RalTable(); _sqlDll.PopulateTreeView("1", "Материалы", null, MatTree); CboType.ValueMember = "Code"; CboType.DisplayMember = "Name"; CboType.DataSource = _matDll.CoatingTypeDt().DefaultView; CboClass.DataSource = _matDll.CoatingListClass(); LoadDataGrid(); txtBoxSearch.Text = "Поиск..."; txtBoxSearch.ForeColor = Color.Gray; } catch (Exception ex) { MessageBox.Show(ex.Message); } }