예제 #1
0
    protected void btn_notify_update_Click(object sender, EventArgs e)
    {
        DataAbstract DA = new DataAbstract();
        int          goal = 0, budget = 0, email = 0, text = 0;

        if (goal_notify.Checked)
        {
            goal = TRUE_FLAG;
        }

        if (budget_notify.Checked)
        {
            budget = TRUE_FLAG;
        }

        if (email_notifications.Checked)
        {
            email = TRUE_FLAG;
        }

        if (text_notifications.Checked)
        {
            text = TRUE_FLAG;
        }

        DA.updateNotifications(userID, goal, budget, email, text);
    }