private void btnEditEntry_Click(object sender, EventArgs e) { try { DataAccessLayerConfigFile layer = new DataAccessLayerConfigFile(); layer.EditRowInTable(txtSettingName.Text, txtSettingValue.Text, cbIsOn.Checked, ID); this.Close(); } catch (Exception ex) { throw ex; } }
private void btnAddToDB_Click(object sender, EventArgs e) { DataAccessLayerConfigFile con = new DataAccessLayerConfigFile(); try { con.AddRowToTable(txtSettingName.Text, txtSettingValue.Text, cbIsOn.Checked); this.Close(); } catch (Exception ex) { throw ex; } }