예제 #1
0
        internal static ITizenPlatform CreatePlatform(EvasObject parent)
        {
            ITizenPlatform platform;

            if (Forms.Flags.Contains(Flags.LightweightPlatformExperimental))
            {
                platform = new LightweightPlatform(parent);
            }
            else
            {
                platform = new DefaultPlatform(parent);
            }
            return(platform);
        }
예제 #2
0
        internal static ITizenPlatform CreatePlatform(EvasObject parent)
        {
            ITizenPlatform platform = PreloadedPlatform.GetInstalce(parent);

            if (Forms.Flags.Contains(Flags.LightweightPlatformExperimental))
            {
                platform?.Dispose();
                platform = new LightweightPlatform(parent);
            }
            else
            {
                platform = platform ?? new DefaultPlatform(parent);
            }

            return(platform);
        }