internal void AddReportParameters(CIContainer aContainer) { CIReportInfo report = (CIReportInfo)aContainer.ChildByType(typeof(CIReportInfo)); if (report != null) { iReportType = report.Type; if (iReportType != string.Empty) { iFileType = XmlConsts.MobileCrashFileType.ETypeCrashAPIReport; } iReportCategory = report.Category; iReportOK = report.CountSuccess; iReportFail = report.CountFail; IEnumerator <CIReportParameter> parameters = report.GetEnumerator(); if (parameters.MoveNext()) //has first parameter { iReportParamName1 = parameters.Current.Name; iReportParamValue1 = parameters.Current.Value; if (parameters.MoveNext()) //has second parameter { iReportParamName2 = parameters.Current.Name; iReportParamValue2 = parameters.Current.Value; if (parameters.MoveNext()) { iReportParamName3 = parameters.Current.Name; iReportParamValue3 = parameters.Current.Value; } } } iReportComments = report.Comments; } }
internal CIReportParameter(CIReportInfo aReport, string aName, uint aValue) : base(aReport.Container) { iName = string.IsNullOrEmpty(aName) ? string.Empty : aName; iValue = aValue; }