/// <summary> /// Creates a wrapper report instance for the given report COM object. /// </summary> /// <param name="iLocReport">Report COM object.</param> /// <returns>Report wrapper.</returns> private LocationReport CreateReport(ILocationReport iLocReport) { LocationReport locReport = CreateReport(); locReport.InitializeReport(iLocReport); return(locReport); }
int ILocationEvents.OnLocationChanged(ref Guid reportType, ILocationReport pLocationReport) { if (LocationChanged != null && reportType.Equals(_reportGuid)) { LocationReport report = CreateReport(pLocationReport); LocationChanged(this, report); } return(0); }
public void SetReport(LocationReport report) { _defaultLocation.SetReport(ref _reportGuid, report.InnerObject); }