本文整理汇总了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");
}
示例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");
}
示例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);
}
示例4: RequestSupportViewModel
public RequestSupportViewModel(IAutomaticSupportService automaticSupportService, ILanguageService languageService)
{
Argument.IsNotNull(() => automaticSupportService);
Argument.IsNotNull(() => languageService);
_automaticSupportService = automaticSupportService;
_languageService = languageService;
Title = languageService.GetString("AutomaticSupport_AutomaticSupport");
}