Ejemplo n.º 1
0
        //private ListViewGroup MakeHouseholdGroup(int hhId, int hhmId)
        //{
        //    Household clsTmpHH = new Household(CCFBGlobal.connectionString);
        //    string hhInfo = "";
        //    ListViewGroup lvg;
        //    clsTmpHH.openWhere("ID = " + hhId);
        //    if (clsTmpHH.RowCount > 0)
        //    {
        //        hhInfo = clsTmpHH.Name + "  " + clsTmpHH.Address + "  " + clsTmpHH.City + ", " + clsTmpHH.State + " " + clsTmpHH.Zipcode
        //               + "  " + CCFBGlobal.IsInactiveString(clsTmpHH.Inactive) + "  " + clsTmpHH.ID.ToString();
        //        lvg = new ListViewGroup(hhInfo, HorizontalAlignment.Left);
        //        lvg.Name = hhId.ToString();
        //    }
        //    else
        //        lvg = new ListViewGroup("HHID = " + hhId.ToString(), HorizontalAlignment.Left);
        //    return lvg;
        //}

        private void tbAge_Leave(object sender, EventArgs e)
        {
            if (tbAge.Text != "" && tbAge.Enabled == true)
            {
                if (chkEnterAge.Checked == true)
                {
                    DateTime birthdate = CCFBGlobal.calcBirthdateFromAge(Convert.ToInt32(tbAge.Text));
                    tbBirthDate.ForeColor = Color.Aqua;
                    tbBirthDate.Text      = birthdate.ToShortDateString();
                    //SetFieldsBasedOnAge(tbAge.Text);
                }
            }
            else if (tbAge.Enabled == true)
            {
                tbAge.Text = "0";
            }
            clearHelpText();
        }