public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var source = (AfterGameCloseOptions)value; var resources = new ResourceProvider(); switch (source) { case AfterGameCloseOptions.None: return(resources.FindString("LOCDoNothing")); case AfterGameCloseOptions.Restore: return(resources.FindString("LOCRestoreWindow")); default: return(string.Empty); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var source = (AfterLaunchOptions)value; var resources = new ResourceProvider(); switch (source) { case AfterLaunchOptions.None: return(resources.FindString("DoNothing")); case AfterLaunchOptions.Minimize: return(resources.FindString("Minimize")); case AfterLaunchOptions.Close: return(resources.FindString("Close")); default: return(string.Empty); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var source = (MetadataSource)value; var resources = new ResourceProvider(); switch (source) { case MetadataSource.Store: return(resources.FindString("LOCMetaSourceStore")); case MetadataSource.IGDB: return(resources.FindString("LOCMetaSourceIGDB")); case MetadataSource.IGDBOverStore: return(resources.FindString("LOCMetaSourceIGDBOverStore")); case MetadataSource.StoreOverIGDB: return(resources.FindString("LOCMetaSourceStoreOverIGDB")); default: return(string.Empty); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var source = (CompletionStatus)value; var resources = new ResourceProvider(); switch (source) { case CompletionStatus.NotPlayed: return(resources.FindString("LOCNotPlayed")); case CompletionStatus.Played: return(resources.FindString("LOCPlayed")); case CompletionStatus.Beaten: return(resources.FindString("LOCBeaten")); case CompletionStatus.Completed: return(resources.FindString("LOCCompleted")); default: return(string.Empty); } }