コード例 #1
0
 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;
     }
 }
コード例 #2
0
        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;
            }
        }