Example #1
0
 protected void getMoodData()
 {
     if (moodValues == null)
     {
         moodValues = new MoodValues();
     }
     else
     {
         loadMoodData();
     }
 }
Example #2
0
 protected void btnClear_Click(object sender, EventArgs e)
 {
     Session["MoodValues"]          = null;
     moodValues                     = null;
     txtHoursSleep.Text             = "";
     rblDepressedMood.SelectedIndex = 0;
     rblElevatedMood.SelectedIndex  = 0;
     rblIrritability.SelectedIndex  = 0;
     rblAnxiety.SelectedIndex       = 0;
     rblPsychotic.SelectedIndex     = 0;
     rblTalkTherapy.SelectedIndex   = 0;
     rblSuicidal.SelectedIndex      = 0;
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         moodValues = (MoodValues)Session["MoodValues"];
         if (moodValues == null)
         {
             txtTodayDate.Text = DateTime.Today.ToShortDateString();
             txtDate.Text      = DateTime.Today.ToString("MM/dd/yyyy");
         }
         else
         {
             loadMoodData();
         }
     }
     else
     {
         getMoodData();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     moodValues = (MoodValues)Session["MoodValues"];
     loadMoodData();
 }