private void AddEmploee_Click(object sender, RoutedEventArgs e) { using (var DB = new SkladModel()) { MessageBox.Show(DB.AddEmployee(TB_FirstNameE.Text, TB_LastNameE.Text, TB_MidleNameE.Text)); } UpdateTable(); UpdateComboBox(); }