/// <summary> /// Saves the changes made in data grid etc. /// </summary> public void Save() { try { using (var conn = new Model.EoF_Configuration_Database_TEST_REGIONDataSetTableAdapters.SoftwareTableAdapter()) { foreach (var software in _allSoftware) { conn.Update(software); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } SoftwareInfoChanged.Invoke(this, new EventArgs()); }