Esempio n. 1
0
        private static AppBarButton NewButton(AppBarItem item)
        {
            switch (item)
            {
            case AppBarItem.ControlPanel:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_cameraSetting.png", UriKind.Absolute)
                    }, Label = SystemUtil.GetStringResource("AppBar_ControlPanel")
                });

            case AppBarItem.AppSetting:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/feature.settings.png", UriKind.Absolute)
                    }, Label = SystemUtil.GetStringResource("AppBar_AppSetting")
                });

            case AppBarItem.CancelTouchAF:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_cancel.png", UriKind.Absolute)
                    }, Label = SystemUtil.GetStringResource("AppBar_CancelTouchAf")
                });

            case AppBarItem.AboutPage:
                return(new AppBarButton()
                {
                    Label = SystemUtil.GetStringResource("About")
                });

            case AppBarItem.LoggerPage:
                return(new AppBarButton()
                {
                    Label = "Logger"
                });

            case AppBarItem.PlaybackPage:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_playback.png", UriKind.Absolute)
                    }, Label = SystemUtil.GetStringResource("AppBar_CameraRoll")
                });

            case AppBarItem.DeleteMultiple:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_delete.png")
                    }, Label = SystemUtil.GetStringResource("AppBar_Delete")
                });

            case AppBarItem.DownloadMultiple:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_download.png")
                    }, Label = SystemUtil.GetStringResource("AppBar_Download")
                });

            case AppBarItem.ShowDetailInfo:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_display_info.png")
                    }, Label = SystemUtil.GetStringResource("ShowDetailInfo")
                });

            case AppBarItem.HideDetailInfo:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_close_display.png")
                    }, Label = SystemUtil.GetStringResource("HideDetailInfo")
                });

            case AppBarItem.Ok:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_ok.png")
                    }, Label = SystemUtil.GetStringResource("AppBar_Exit")
                });

            case AppBarItem.WifiSetting:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_wifi.png")
                    }, Label = SystemUtil.GetStringResource("WifiSettingLauncherButtonText")
                });

            case AppBarItem.Donation:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_Dollar.png")
                    }, Label = SystemUtil.GetStringResource("Donation")
                });

            case AppBarItem.RotateLeft:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_rotateLeft.png")
                    }, Label = SystemUtil.GetStringResource("RotateLeft")
                });

            case AppBarItem.RotateRight:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/appbar_rotateRight.png")
                    }, Label = SystemUtil.GetStringResource("RotateRight")
                });

            case AppBarItem.Refresh:
                return(new AppBarButton()
                {
                    Icon = new BitmapIcon()
                    {
                        UriSource = new Uri("ms-appx:///Assets/AppBar/sync.png")
                    }, Label = SystemUtil.GetStringResource("AppBar_Refresh")
                });

            default:
                throw new NotImplementedException();
            }
        }
Esempio n. 2
0
 private static string FromIntervalTime(string val)
 {
     return(val + " " + SystemUtil.GetStringResource("Seconds"));
 }
Esempio n. 3
0
        public static string FlashNames(uint value)
        {
            switch (value)
            {
            case 0x0:
                return(SystemUtil.GetStringResource("Exif_Flash_NoFlash"));

            case 0x01:
            case 0x05:
            case 0x07:
                return(SystemUtil.GetStringResource("Exif_Flash_Fired"));

            case 0x08:
                return(SystemUtil.GetStringResource("Exif_Flash_On_NotFired"));

            case 0x09:
            case 0x0d:
            case 0x0f:
                return(SystemUtil.GetStringResource("Exif_Flash_On_Fired"));

            case 0x10:
            case 0x14:
                return(SystemUtil.GetStringResource("Exif_Flash_Off_NotFired"));

            case 0x18:
                return(SystemUtil.GetStringResource("Exif_Flash_Auto_NotFired"));

            case 0x19:
            case 0x1d:
            case 0x1f:
                return(SystemUtil.GetStringResource("Exif_Flash_Auto_Fired"));

            case 0x20:
                return(SystemUtil.GetStringResource("Exif_Flash_NoFlashFunction"));

            case 0x30:
                return(SystemUtil.GetStringResource("Exif_Flash_NoFlashFunction"));

            case 0x41:
            case 0x45:
            case 0x47:
                return(SystemUtil.GetStringResource("Exif_Flash_Fired_RedEyeReduction"));

            case 0x49:
            case 0x4d:
            case 0x4f:
                return(SystemUtil.GetStringResource("Exif_Flash_On_Fired_RedEyeReduction"));

            case 0x50:
                return(SystemUtil.GetStringResource("Exif_Flash_Off_NotFired_RedEyeReduction"));

            case 0x58:
                return(SystemUtil.GetStringResource("Exif_Flash_Auto_NotFired_RedEyeReduction"));

            case 0x59:
            case 0x5d:
            case 0x5f:
                return(SystemUtil.GetStringResource("Exif_Flash_Auto_Fired_RedEyeReduction"));

            default:
                return(SystemUtil.GetStringResource("Exif_Flash_Unknown"));
            }
        }
Esempio n. 4
0
 private static string FromViewAngle(int val)
 {
     return(val + SystemUtil.GetStringResource("ViewAngleUnit"));
 }