Table of Contents

Class ReportGeneratorContextExtensions

Namespace
Cryville.EEW.Report
Assembly
Cryville.EEW.dll
Provides a set of static methods related to IReportGeneratorContext.
public static class ReportGeneratorContextExtensions
Inheritance
ReportGeneratorContextExtensions
Inherited Members

Methods

NameLocationTo(IReportGeneratorContext, ReportModel, double, double, CultureInfo?, CultureInfo)

Names a location in a culture and sets the result to a report model.
public static bool NameLocationTo(this IReportGeneratorContext context, ReportModel e, double lat, double lon, CultureInfo? localCulture, CultureInfo targetCulture)

Parameters

context IReportGeneratorContext
The context.
e ReportModel
The report model. Its Location and LocationSpecificity are modified to the name given by the context, if and only if this method returns true.
lat double
The latitude of the location.
lon double
The longitude of the location.
localCulture CultureInfo
The local culture supported by the event itself.
targetCulture CultureInfo
The target culture of the location name. When the method returns, set to the actual culture of the location name.

Returns

bool
Whether the name is given by the context. false if the generator should provide a local name instead.