public void LoadStatusRepairs() { List <StatusRepair> statusesRepairs = sql.getStatusAll(); comboBox_StatusRepairEditRepair.ItemsSource = statusesRepairs; comboBox_StatusRepairEditRepair.DisplayMemberPath = "NameStatus"; comboBox_StatusRepairEditRepair.SelectedIndex = 0; //comboBox_StatusRepairAddRepair.Text = "В работе"; statusesRepairs = null; }