Exemplo n.º 1
0
        public bool Update()
        {
            if (p_tablename == "honors")
            {
                return(Honors_Class.UpdateAward(pID.ToString(), textbox_results.Text.Trim(), textbox_name.Text.Trim(), textbox_date.Text.Trim()));
            }
            else if (p_tablename == "Evaluation")
            {
                string p_tempname = "";
                if (p_labelname != "")
                {
                    p_tempname = p_labelname;
                }
                else
                {
                    p_tempname = textbox_name.Text.Trim();
                }

                return(Evaluation_Class.UpdateByID(pID.ToString(), textbox_results.Text.Trim(), p_tempname, textbox_date.Text.Trim(), ptype));
            }
            return(true);
        }