Esempio n. 1
0
        private bool updateConsumer(ref string strResponse)
        {
            clsDB  objDB  = new clsDB(resPinnacle.liveDB);
            string strSQL = returnUpdateConsumerSQL(objDB);

            bool blPass = false;

            blPass = objDB.EditConsumer(strSQL);

            if (blPass == true)
            {
                //MessageBox.Show("Consumer " + txtFirst.Text + " " + txtLast.Text + " has been successfully updated.");
                strResponse = "Consumer " + txtFirst.Text + " " + txtLast.Text + " has been successfully updated.";
            }
            else
            {
                strResponse = "The consumer was not added to the database. Please try again. Consult IT if problem persists";
                txtFirst.Focus();
            }

            return(blPass);
        }