Ejemplo n.º 1
0
    void PopulateDateOfBirth()
    {
        TempDOB.Year = Random.Range(1900, 1980);

        TempDOB.Month = Random.Range(1, 13);

        if (TempDOB.Month != 2)
        {
            if (TempDOB.Month == 4 || TempDOB.Month == 6 || TempDOB.Month == 9 || TempDOB.Month == 11)
            {
                TempDOB.Day = Random.Range(1, 31);
            }
            else
            {
                TempDOB.Day = Random.Range(1, 32);
            }
        }
        else
        {
            TempDOB.Day = Random.Range(1, 27);
        }

        TempDOB.Age = 1980 - TempDOB.Year;

        TempDOB = new DOBSystem(TempDOB.Day, TempDOB.Month, TempDOB.Year, TempDOB.Age);
    }
Ejemplo n.º 2
0
 public OrgnizationSystem(string name, string abv, string orgnum, DOBSystem dob, OrgType type, List <ServerSystem> server)
 {
     Name         = name;
     Abv          = abv;
     ORGNum       = orgnum;
     FoundingDate = dob;
     Type         = type;
     Server       = server;
     //Month = month;
     //Year = year;
     //Age = age;
 }
Ejemplo n.º 3
0
 public PeopleSystem(string name, string personid, string phonenumber, string ipaddress, string maritalstatus, string personalstatus, int iq, Texture2D photo, DOBSystem dob, CollageSystem collage, UniversitySystem university, BankSystem bankdetails, GatewaySystem gateway)
 {
     Name           = name;
     PersonID       = personid;
     PhoneNumber    = phonenumber;
     IPAddress      = ipaddress;
     MaritalStatus  = maritalstatus;
     PersonalStatus = personalstatus;
     IQ             = iq;
     Photo          = photo;
     DOB            = dob;
     Collage        = collage;
     University     = university;
     BankDetails    = bankdetails;
     Gateway        = gateway;
 }