Beispiel #1
0
        public MobileOrganization populate(OrganizationInfo oi)
        {
            id   = oi.id;
            name = oi.name;

            if (oi.time != null && oi.day != null)
            {
                datetime = createOrgDateTime(oi.time.Value, oi.day.Value);
            }
            else if (oi.lastMeetting != null && oi.lastMeetting.Value.Date == DateTime.Now.Date)
            {
                datetime = oi.lastMeetting;
            }
            else
            {
                datetime = DateTime.Now;
            }

            if (datetime.HasValue)
            {
                datetime = DateTime.SpecifyKind(datetime.Value, DateTimeKind.Local);
            }

            return(this);
        }
        public MobileOrganization populate(OrganizationInfo oi)
        {
            id = oi.id;
            name = oi.name;

            if (oi.time != null && oi.day != null)
            {
                datetime = createOrgDateTime(oi.time.Value, oi.day.Value);
            }
            else if (oi.lastMeetting != null && oi.lastMeetting.Value.Date == DateTime.Now.Date)
            {
                datetime = oi.lastMeetting;
            }
            else
            {
                datetime = DateTime.Now;
            }

            if (datetime.HasValue)
            {
                datetime = DateTime.SpecifyKind(datetime.Value, DateTimeKind.Local);
            }

            return this;
        }
        public MobileOrganization populate(OrganizationInfo oi)
        {
            id   = oi.id;
            name = oi.name;

            datetime = createOrgDateTime(oi.time, oi.day);
            return(this);
        }
Beispiel #4
0
        public MobileOrganization populate(OrganizationInfo oi)
        {
            id = oi.id;
            name = oi.name;

            datetime = createOrgDateTime(oi.time, oi.day);
            return this;
        }