コード例 #1
0
        public static void Initialize(string constructionCode)
        {
            using (var service = new SocketPlanServiceNoTimeout())
            {
                convertionSerials    = new List <ConvertionLightSerial>(service.GetConvertionLightSerials(constructionCode));
                switchLights         = new List <SwitchLightSerial>(service.GetSwitchLightSerials());
                usableSerials        = new List <UsableRohmOfLightSerial>(service.GetUsableRohmOfLightSerial(constructionCode));
                isUsingIrisLight     = service.IsUsingIrisohyamaLightConstructions(constructionCode);
                usableBracketSerials = new List <UsableBracketLightSerial>(service.GetUsableBracketLightSerials(Static.ConstructionCode));
            }

            if (Static.Schedule != null)
            {
                releaseDate = Static.Schedule.ExpectedReleaseDate;
            }
            else
            {
                releaseDate = null;
            }

            checkedConstructionCode = constructionCode;
        }