Ejemplo n.º 1
0
 public void AddConfirmedLocationTotheList(ConfirmedSickLocation i_confirmedSickLocation)
 {
     if (!CheckIfLocationIsInTheList(i_confirmedSickLocation) == true)
     {
         ConfirmedSickLocations.Add(i_confirmedSickLocation);
     }
 }
Ejemplo n.º 2
0
        private void loadDefault()
        {
            ConfirmedSickLocation defaultLocation = new ConfirmedSickLocation();

            defaultLocation.Location = "האקדמית תא יפו";
            defaultLocation.DateOfSickConfirmation = new DateTime(2020, 04, 03, 10, 30, 0);

            ConfirmedSickLocations.Add(defaultLocation);
        }
Ejemplo n.º 3
0
        public bool CheckIfLocationIsInTheList(ConfirmedSickLocation i_Location)
        {
            foreach (ConfirmedSickLocation confirmedSickLocation in ConfirmedSickLocations)
            {
                if (confirmedSickLocation.Location == i_Location.Location)
                {
                    if (IsWithInTheRecoveryTime(confirmedSickLocation.DateOfSickConfirmation))
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }