private void EditEmploee_Click(object sender, RoutedEventArgs e) { using (var DB = new SkladModel()) { MessageBox.Show(DB.EditEmployee(Convert.ToInt32(DGR_Employee.SelectedValue), TB_FirstNameE.Text, TB_LastNameE.Text, TB_MidleNameE.Text)); } UpdateTable(); UpdateComboBox(); }