Ejemplo n.º 1
0
        private void Clear()
        {
            Date = DateTime.Today;

            SelectedMode               = Modes.OrderBy(x => x.Rank).FirstOrDefault();
            SelectedOutcome            = Outcomes.OrderBy(x => x.Rank).FirstOrDefault();
            SelectedReasonNotContacted = ReasonsNotContacted.OrderBy(x => x.Rank).FirstOrDefault();
            ReasonNotContactedOther    = string.Empty;
        }
Ejemplo n.º 2
0
 private void LoadTest()
 {
     if (null != TestResult)
     {
         Id                         = TestResult.Id;
         Date                       = TestResult.Date;
         SelectedMode               = Modes.FirstOrDefault(x => x.ItemId == TestResult.Mode);
         SelectedOutcome            = Outcomes.FirstOrDefault(x => x.ItemId == TestResult.Outcome);
         SelectedReasonNotContacted =
             ReasonsNotContacted.FirstOrDefault(x => x.ItemId == TestResult.ReasonNotContacted);
         ReasonNotContactedOther = TestResult.ReasonNotContactedOther;
     }
 }
Ejemplo n.º 3
0
        private void Clear()
        {
            BookingDate = Date = DateTime.Today;

            SelectedMode    = Modes.OrderBy(x => x.Rank).FirstOrDefault();
            SelectedOutcome = Outcomes.OrderBy(x => x.Rank).FirstOrDefault();
            if (null != Consents)
            {
                SelectedConsent = Consents.OrderBy(x => x.Rank).FirstOrDefault();
            }
            SelectedReasonNotContacted = ReasonsNotContacted.OrderBy(x => x.Rank).FirstOrDefault();
            ReasonNotContactedOther    = string.Empty;
        }