当前位置: 首页>>代码示例>>C#>>正文


C# ILanguageService.GetString方法代码示例

本文整理汇总了C#中ILanguageService.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# ILanguageService.GetString方法的具体用法?C# ILanguageService.GetString怎么用?C# ILanguageService.GetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ILanguageService的用法示例。


在下文中一共展示了ILanguageService.GetString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SummaryWizardPage

        public SummaryWizardPage(ILanguageService languageService)
        {
            Argument.IsNotNull(() => languageService);

            _languageService = languageService;

            Title = _languageService.GetString("Wizard_SummaryTitle");
            Description = _languageService.GetString("Wizard_SummaryDescription");
        }
开发者ID:WildGums,项目名称:Orc.Wizard,代码行数:9,代码来源:SummaryWizardPage.cs

示例2: WorkspaceViewModel

        public WorkspaceViewModel(IWorkspace workspace, ILanguageService languageService)
        {
            Argument.IsNotNull(() => workspace);
            Argument.IsNotNull(() => languageService);

            DeferValidationUntilFirstSaveCall = true;
            SuspendValidation = false;

            Workspace = workspace;

            Title = !string.IsNullOrEmpty(workspace.Title) ? string.Format(languageService.GetString("WorkspaceManagement_EditWorkspace"), workspace.Title) : languageService.GetString("WorkspaceManagement_CreateNewWorkspace");
        }
开发者ID:WildGums,项目名称:Orc.WorkspaceManagement,代码行数:12,代码来源:WorkspaceViewModel.cs

示例3: AboutViewModel

        public AboutViewModel(AboutInfo aboutInfo, IProcessService processService, IUIVisualizerService uiVisualizerService,
            IMessageService messageService, ILanguageService languageService)
        {
            Argument.IsNotNull(() => aboutInfo);
            Argument.IsNotNull(() => processService);
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => messageService);
            Argument.IsNotNull(() => languageService);

            _processService = processService;
            _uiVisualizerService = uiVisualizerService;
            _messageService = messageService;
            _languageService = languageService;

            var assembly = aboutInfo.Assembly;
            var version = aboutInfo.DisplayVersion;
            var buildDateTime = aboutInfo.BuildDateTime.Value;

            Title = aboutInfo.Name;
            Version = string.Format("v {0}", aboutInfo.DisplayVersion);
            BuildDateTime = string.Format(languageService.GetString("Orchestra_BuiltOn"), buildDateTime);
            UriInfo = aboutInfo.UriInfo;
            Copyright = aboutInfo.Copyright;
            CompanyLogoUri = aboutInfo.CompanyLogoUri;
            ImageSourceUrl = aboutInfo.LogoImageSource;
            ShowLogButton = aboutInfo.ShowLogButton;
            AppIcon = aboutInfo.AppIcon;
            OpenUrl = new Command(OnOpenUrlExecute, OnOpenUrlCanExecute);
            OpenLog = new TaskCommand(OnOpenLogExecuteAsync);
            ShowSystemInfo = new Command(OnShowSystemInfoExecute);
            EnableDetailedLogging = new Command(OnEnableDetailedLoggingExecute);
        }
开发者ID:WildGums,项目名称:Orchestra,代码行数:32,代码来源:AboutViewModel.cs

示例4: RequestSupportViewModel

        public RequestSupportViewModel(IAutomaticSupportService automaticSupportService, ILanguageService languageService)
        {
            Argument.IsNotNull(() => automaticSupportService);
            Argument.IsNotNull(() => languageService);

            _automaticSupportService = automaticSupportService;
            _languageService = languageService;

            Title = languageService.GetString("AutomaticSupport_AutomaticSupport");
        }
开发者ID:telefunkenvf14,项目名称:Orc.AutomaticSupport,代码行数:10,代码来源:RequestSupportViewModel.cs


注:本文中的ILanguageService.GetString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。