Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
Skip Navigation LinksHome » Code Library » Find

Public general use code classes and xml files that we've compiled and used over the years:

Find subscriber and network information support class for the Next Generation Network ui model

   1:  using System;
   2:  using System.Text;
   3:  using System.Collections.Generic;
   4:  using System.Runtime.Serialization;
   5:   
   6:  namespace Ia.Ngn.Cl.Model.Ui.Maintenance
   7:  {
   8:      ////////////////////////////////////////////////////////////////////////////
   9:   
  10:      /// <summary publish="true">
  11:      /// Find subscriber and network information support class for the Next Generation Network ui model
  12:      /// </summary>
  13:      /// 
  14:      /// <remarks> 
  15:      /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  16:      ///
  17:      /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
  18:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  19:      ///
  20:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  21:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  22:      /// 
  23:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  24:      /// 
  25:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  26:      /// </remarks> 
  27:      [DataContract(IsReference = true, Namespace = "kw.com.ia.ngn.api", Name = "apiFind")]
  28:      public partial class Find
  29:      {
  30:          private static List<Ia.Ngn.Cl.Model.Ui.Service2> serviceList;
  31:          private static List<Ia.Ngn.Cl.Model.Ui.Nokia.AgcfGatewayRecord> agcfGatewayRecordList;
  32:          private static List<Ia.Ngn.Cl.Model.Ui.Nokia.AgcfEndpoint> agcfEndpointList;
  33:          private static List<Ia.Ngn.Cl.Model.Ui.Nokia.SubParty> subPartyList;
  34:          private static List<Ia.Ngn.Cl.Model.Ui.Nokia.Subscriber> subscriberList;
  35:          private static List<Ia.Ngn.Cl.Model.Ui.Huawei.HuSbr> huSbrList;
  36:          private static List<Ia.Ngn.Cl.Model.Huawei.Owsbr> owsbrList;
  37:          private static List<Ia.Ngn.Cl.Model.Ont> ontList;
  38:          private static List<Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Ont> nddOntList;
  39:          private static List<Ia.Ngn.Cl.Model.OntServiceVoip> ontServiceVoipList;
  40:          private static List<Ia.Ngn.Cl.Model.OntOntPots> ontOntPotsList;
  41:          private static List<Ia.Ngn.Cl.Model.OntServiceHsi> ontServiceHsiList;
  42:          private static List<Ia.Ngn.Cl.Model.Huawei.Onu> onuList;
  43:          private static List<Ia.Ngn.Cl.Model.Ui.Huawei.EmsOnt> emsOntList;
  44:          private static List<Ia.Ngn.Cl.Model.Huawei.EmsOntSipInfo> emsOntSipInfoList;
  45:          private static List<Ia.Ngn.Cl.Model.Huawei.EmsVoipPstnUser> emsVoipPstnUserList;
  46:          private static List<Ia.Ngn.Cl.Model.Event> eventList;
  47:          private static List<Ia.Ngn.Cl.Model.Access> accessList;
  48:          private static List<Ia.Ngn.Cl.Model.Ui.ServiceRequestService> serviceRequestServiceList;
  49:          private static List<Ia.Ngn.Cl.Model.ServiceInitialState> serviceInitialStateList;
  50:          private static List<Ia.Ngn.Cl.Model.ServiceRequest> serviceRequestList;
  51:          private static List<Ia.Ngn.Cl.Model.ServiceRequestType> serviceRequestTypeList;
  52:          private static List<Ia.Ngn.Cl.Model.ServiceRequestOnt> serviceRequestOntList;
  53:          private static List<Ia.Ngn.Cl.Model.ServiceRequestOntDetail> serviceRequestOntDetailList;
  54:          private static List<Ia.Ngn.Cl.Model.Report> reportList;
  55:          private static List<Ia.Ngn.Cl.Model.ReportHistory> reportHistoryList;
  56:   
  57:          /// <summary/>
  58:          [DataMember(Name = "serviceList")]
  59:          public List<Ia.Ngn.Cl.Model.Ui.Service2> ServiceList { get; set; }
  60:   
  61:          /// <summary/>
  62:          [DataMember(Name = "result")]
  63:          public Ia.Cl.Model.Result Result { get; set; }
  64:   
  65:          /////////////////////////////////////////////////////////////////////////////////
  66:   
  67:          /// <summary>
  68:          ///
  69:          /// </summary>
  70:          public static void SearchForApi(Ia.Ngn.Cl.Model.Business.Administration.StaffContact staffContact, string input, out List<Ia.Ngn.Cl.Model.Ui.Service2> serviceList, out Ia.Cl.Model.Result result)
  71:          {
  72:              string inputType;
  73:              result = new Ia.Cl.Model.Result();
  74:   
  75:              inputType = string.Empty;
  76:              serviceList = null;
  77:   
  78:              if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteMaintenanceFind(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Read, staffContact))
  79:              {
  80:                  Ia.Ngn.Cl.Model.Business.Maintenance.Find.Search(input, inputType, out serviceList, out agcfGatewayRecordList, out agcfEndpointList, out subPartyList, out subscriberList, out huSbrList, out owsbrList, out nddOntList, out ontList, out ontServiceVoipList, out ontOntPotsList, out ontServiceHsiList, out onuList, out emsOntList, out emsOntSipInfoList, out emsVoipPstnUserList, out eventList, out accessList, out serviceRequestServiceList, out serviceInitialStateList, out serviceRequestList, out serviceRequestTypeList, out serviceRequestOntList, out serviceRequestOntDetailList, out reportList, out reportHistoryList, out result);
  81:   
  82:                  if (!result.HasError)
  83:                  {
  84:   
  85:                  }
  86:                  else
  87:                  {
  88:   
  89:                  }
  90:              }
  91:              else
  92:              {
  93:                  result.AddError("You are not authorized to modify this value (لست مخولاً بتعديل هذه القيمة). ");
  94:              }
  95:          }
  96:   
  97:          /////////////////////////////////////////////////////////////////////////////////
  98:   
  99:          /// <summary>
 100:          ///
 101:          /// </summary>
 102:          public static void SearchForMail(Ia.Ngn.Cl.Model.Business.Administration.StaffContact staffContact, string opcode, string operand, out string subject, out StringBuilder contentStringBuilder)
 103:          {
 104:              string inputType, horizontalRule;
 105:              DateTime now;
 106:   
 107:              inputType = string.Empty;
 108:              horizontalRule = "===============================================";
 109:   
 110:              now = DateTime.UtcNow.AddHours(3);
 111:   
 112:              // subject can't have \r\n
 113:              //responseSubject = "Optical Fiber Network (OFN) Find Result (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
 114:   
 115:              //if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
 116:              //{
 117:              opcode = opcode.ToLower();
 118:   
 119:              SearchForTelegramBotApiAndMailAndTwitterSimpleText(opcode, operand, inputType, horizontalRule, out subject, out contentStringBuilder);
 120:   
 121:              contentStringBuilder.AppendLine(horizontalRule);
 122:              contentStringBuilder.AppendLine(@"Help? Send message with ""mail/maintenance/find/help""");
 123:              contentStringBuilder.AppendLine(horizontalRule);
 124:              contentStringBuilder.AppendLine();
 125:              /*}
 126:               else
 127:               {
 128:                   responseContent += "\r\n";
 129:                   responseContent += "You are not authorized to modify this value. ";
 130:                   responseContent += "\r\n";
 131:               }*/
 132:          }
 133:   
 134:          /////////////////////////////////////////////////////////////////////////////////
 135:   
 136:          /// <summary>
 137:          ///
 138:          /// </summary>
 139:          public static void SearchForTelegramBotApi(string opcode, string operand, out string subject, out string content)
 140:          {
 141:              string inputType, horizontalRule;
 142:              StringBuilder contentStringBuilder;
 143:              DateTime now;
 144:   
 145:              inputType = string.Empty;
 146:              horizontalRule = " ";
 147:   
 148:              now = DateTime.UtcNow.AddHours(3);
 149:   
 150:              //if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
 151:              //{
 152:              opcode = opcode.ToLower();
 153:   
 154:              SearchForTelegramBotApiAndMailAndTwitterSimpleText(opcode, operand, inputType, horizontalRule, out subject, out contentStringBuilder);
 155:   
 156:              contentStringBuilder.AppendLine(@"Help? Send the command /help");
 157:              contentStringBuilder.AppendLine(horizontalRule);
 158:              contentStringBuilder.AppendLine();
 159:   
 160:              content = contentStringBuilder.ToString();
 161:              //}
 162:              //else
 163:              //{
 164:              //    responseContent += "\r\n";
 165:              //    responseContent += "You are not authorized to modify this value. ";
 166:              //    responseContent += "\r\n";
 167:              //}
 168:          }
 169:   
 170:          /////////////////////////////////////////////////////////////////////////////////
 171:   
 172:          /// <summary>
 173:          ///
 174:          /// </summary>
 175:          public static void SearchForTwitter(string opcode, string operand, out string subject, out string content)
 176:          {
 177:              string inputType, horizontalRule;
 178:              StringBuilder contentStringBuilder;
 179:              DateTime now;
 180:   
 181:              inputType = string.Empty;
 182:              horizontalRule = " ";
 183:   
 184:              now = DateTime.UtcNow.AddHours(3);
 185:   
 186:              // subject can't have \r\n
 187:              //responseSubject = "Optical Fiber Network (OFN) Find Result (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
 188:   
 189:              //if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
 190:              //{
 191:              opcode = opcode.ToLower();
 192:   
 193:              SearchForTelegramBotApiAndMailAndTwitterSimpleText(opcode, operand, inputType, horizontalRule, out subject, out contentStringBuilder);
 194:   
 195:              contentStringBuilder.AppendLine(horizontalRule);
 196:              contentStringBuilder.AppendLine(@"Help? Send the command /help");
 197:              contentStringBuilder.AppendLine(horizontalRule);
 198:              contentStringBuilder.AppendLine();
 199:   
 200:              content = contentStringBuilder.ToString();
 201:              /*}
 202:              else
 203:              {
 204:                  responseContent += "\r\n";
 205:                  responseContent += "You are not authorized to modify this value. ";
 206:                  responseContent += "\r\n";
 207:              }*/
 208:          }
 209:   
 210:          ////////////////////////////////////////////////////////////////////////////
 211:   
 212:          /// <summary>
 213:          ///
 214:          /// </summary>
 215:          public static void SearchForTelegramBotApiAndMailAndTwitterSimpleText(string opcode, string operand, string inputType, string horizontalRule, out string subject, out StringBuilder contentStringBuilder)
 216:          {
 217:              StringBuilder stringBuilder;
 218:              DateTime now;
 219:              Ia.Cl.Model.Result result;
 220:   
 221:              stringBuilder = new StringBuilder();
 222:   
 223:              subject = string.Empty;
 224:              now = DateTime.UtcNow.AddHours(3);
 225:   
 226:              if (opcode.Contains("help"))
 227:              {
 228:                  // subject can't have \r\n
 229:                  //subject = "Help:";
 230:   
 231:                  stringBuilder.AppendLine(Ia.Ngn.Cl.Model.Data.Help.Text(opcode));
 232:                  stringBuilder.AppendLine();
 233:              }
 234:              else if (opcode.Contains("find"))
 235:              {
 236:                  // subject can't have \r\n
 237:                  subject = "Optical Fiber Network (OFN) Find Result (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
 238:   
 239:                  Ia.Ngn.Cl.Model.Business.Maintenance.Find.Search(operand, inputType, out serviceList, out agcfGatewayRecordList, out agcfEndpointList, out subPartyList, out subscriberList, out huSbrList, out owsbrList, out nddOntList, out ontList, out ontServiceVoipList, out ontOntPotsList, out ontServiceHsiList, out onuList, out emsOntList, out emsOntSipInfoList, out emsVoipPstnUserList, out eventList, out accessList, out serviceRequestServiceList, out serviceInitialStateList, out serviceRequestList, out serviceRequestTypeList, out serviceRequestOntList, out serviceRequestOntDetailList, out reportList, out reportHistoryList, out result);
 240:   
 241:                  if (result.IsSuccessful)
 242:                  {
 243:                      if (serviceList != null && serviceList.Count > 0)
 244:                      {
 245:                          stringBuilder.AppendLine(horizontalRule);
 246:                          stringBuilder.AppendLine("Services:"); //("Service2s:");
 247:                          stringBuilder.AppendLine();
 248:                          foreach (var s in serviceList) stringBuilder.AppendLine(s.ToSimpleTextString());
 249:                          stringBuilder.AppendLine(horizontalRule);
 250:                          stringBuilder.AppendLine();
 251:                      }
 252:   
 253:                      if (agcfGatewayRecordList != null && agcfGatewayRecordList.Count > 0)
 254:                      {
 255:                          stringBuilder.AppendLine(horizontalRule);
 256:                          stringBuilder.AppendLine("AGCF Gateway Records:");
 257:                          stringBuilder.AppendLine();
 258:                          foreach (var gr in agcfGatewayRecordList) stringBuilder.AppendLine(gr.ToSimpleTextString());
 259:                          stringBuilder.AppendLine(horizontalRule);
 260:                          stringBuilder.AppendLine();
 261:                      }
 262:   
 263:                      if (agcfEndpointList != null && agcfEndpointList.Count > 0)
 264:                      {
 265:                          stringBuilder.AppendLine(horizontalRule);
 266:                          stringBuilder.AppendLine("AGCF Endpoints:");
 267:                          stringBuilder.AppendLine();
 268:                          foreach (var ep in agcfEndpointList) stringBuilder.AppendLine(ep.ToSimpleTextString());
 269:                          stringBuilder.AppendLine(horizontalRule);
 270:                          stringBuilder.AppendLine();
 271:                      }
 272:   
 273:                      if (subPartyList != null && subPartyList.Count > 0)
 274:                      {
 275:                          stringBuilder.AppendLine(horizontalRule);
 276:                          stringBuilder.AppendLine("SubParties:");
 277:                          stringBuilder.AppendLine();
 278:                          foreach (var sp in subPartyList) stringBuilder.AppendLine(sp.ToSimpleTextString());
 279:                          stringBuilder.AppendLine(horizontalRule);
 280:                          stringBuilder.AppendLine();
 281:                      }
 282:   
 283:                      if (subscriberList != null && subscriberList.Count > 0)
 284:                      {
 285:                          stringBuilder.AppendLine(horizontalRule);
 286:                          stringBuilder.AppendLine("Subscribers:");
 287:                          stringBuilder.AppendLine();
 288:                          foreach (var s in subscriberList) stringBuilder.AppendLine(s.ToSimpleTextString());
 289:                          stringBuilder.AppendLine(horizontalRule);
 290:                          stringBuilder.AppendLine();
 291:                      }
 292:   
 293:   
 294:                      if (huSbrList != null && huSbrList.Count > 0)
 295:                      {
 296:                          stringBuilder.AppendLine(horizontalRule);
 297:                          stringBuilder.AppendLine("Sbrs:");
 298:                          stringBuilder.AppendLine();
 299:                          foreach (var h in huSbrList) stringBuilder.AppendLine(h.ToSimpleTextString());
 300:                          stringBuilder.AppendLine(horizontalRule);
 301:                          stringBuilder.AppendLine();
 302:                      }
 303:   
 304:                      if (owsbrList != null && owsbrList.Count > 0)
 305:                      {
 306:                          stringBuilder.AppendLine(horizontalRule);
 307:                          stringBuilder.AppendLine("Owsbrs:");
 308:                          stringBuilder.AppendLine();
 309:                          foreach (var o in owsbrList) stringBuilder.AppendLine(o.ToSimpleTextString());
 310:                          stringBuilder.AppendLine(horizontalRule);
 311:                          stringBuilder.AppendLine();
 312:                      }
 313:   
 314:                      if (nddOntList != null && nddOntList.Count > 0)
 315:                      {
 316:                          stringBuilder.AppendLine(horizontalRule);
 317:                          stringBuilder.AppendLine("Network Design Document ONTs (Standard):");
 318:                          stringBuilder.AppendLine();
 319:                          foreach (var o in nddOntList) stringBuilder.AppendLine(o.ToSimpleTextString());
 320:                          stringBuilder.AppendLine(horizontalRule);
 321:                          stringBuilder.AppendLine();
 322:                      }
 323:   
 324:                      if (ontList != null && ontList.Count > 0)
 325:                      {
 326:                          stringBuilder.AppendLine(horizontalRule);
 327:                          stringBuilder.AppendLine("ONTs (AMS):");
 328:                          stringBuilder.AppendLine();
 329:                          foreach (var o in ontList) stringBuilder.AppendLine(o.ToSimpleTextString());
 330:                          stringBuilder.AppendLine(horizontalRule);
 331:                          stringBuilder.AppendLine();
 332:                      }
 333:   
 334:                      if (ontServiceVoipList != null && ontServiceVoipList.Count > 0)
 335:                      {
 336:                          stringBuilder.AppendLine(horizontalRule);
 337:                          stringBuilder.AppendLine("ONT (AMS) Service VOIPs:");
 338:                          stringBuilder.AppendLine();
 339:                          foreach (var osv in ontServiceVoipList) stringBuilder.AppendLine(osv.ToSimpleTextString());
 340:                          stringBuilder.AppendLine(horizontalRule);
 341:                          stringBuilder.AppendLine();
 342:                      }
 343:   
 344:                      if (ontOntPotsList != null && ontOntPotsList.Count > 0)
 345:                      {
 346:                          stringBuilder.AppendLine(horizontalRule);
 347:                          stringBuilder.AppendLine("ONT (AMS) POTSs:");
 348:                          stringBuilder.AppendLine();
 349:                          foreach (var oop in ontOntPotsList) stringBuilder.AppendLine(oop.ToSimpleTextString());
 350:                          stringBuilder.AppendLine(horizontalRule);
 351:                          stringBuilder.AppendLine();
 352:                      }
 353:   
 354:                      if (ontServiceHsiList != null && ontServiceHsiList.Count > 0)
 355:                      {
 356:                          stringBuilder.AppendLine(horizontalRule);
 357:                          stringBuilder.AppendLine("ONT (AMS) Service HSIs:");
 358:                          stringBuilder.AppendLine();
 359:                          foreach (var osh in ontServiceHsiList) stringBuilder.AppendLine(osh.ToSimpleTextString());
 360:                          stringBuilder.AppendLine(horizontalRule);
 361:                          stringBuilder.AppendLine();
 362:                      }
 363:   
 364:                      // onuList
 365:   
 366:                      if (emsOntList != null && emsOntList.Count > 0)
 367:                      {
 368:                          stringBuilder.AppendLine(horizontalRule);
 369:                          stringBuilder.AppendLine("ONTs (EMS):");
 370:                          stringBuilder.AppendLine();
 371:                          foreach (var eo in emsOntList) stringBuilder.AppendLine(eo.ToSimpleTextString());
 372:                          stringBuilder.AppendLine(horizontalRule);
 373:                          stringBuilder.AppendLine();
 374:                      }
 375:   
 376:                      if (emsOntSipInfoList != null && emsOntSipInfoList.Count > 0)
 377:                      {
 378:                          stringBuilder.AppendLine(horizontalRule);
 379:                          stringBuilder.AppendLine("ONTSIPINFOs (EMS):");
 380:                          stringBuilder.AppendLine();
 381:                          foreach (var eosi in emsOntSipInfoList) stringBuilder.AppendLine(eosi.ToSimpleTextString());
 382:                          stringBuilder.AppendLine(horizontalRule);
 383:                          stringBuilder.AppendLine();
 384:                      }
 385:   
 386:                      if (emsVoipPstnUserList != null && emsVoipPstnUserList.Count > 0)
 387:                      {
 388:                          stringBuilder.AppendLine(horizontalRule);
 389:                          stringBuilder.AppendLine("VOIPPSTNUSERs (EMS):");
 390:                          stringBuilder.AppendLine();
 391:                          foreach (var evpu in emsVoipPstnUserList) stringBuilder.AppendLine(evpu.ToSimpleTextString());
 392:                          stringBuilder.AppendLine(horizontalRule);
 393:                          stringBuilder.AppendLine();
 394:                      }
 395:   
 396:                      // , out eventList
 397:   
 398:                      if (accessList != null && accessList.Count > 0)
 399:                      {
 400:                          stringBuilder.AppendLine(horizontalRule);
 401:                          stringBuilder.AppendLine("Accesses:");
 402:                          stringBuilder.AppendLine();
 403:                          foreach (var a in accessList) stringBuilder.AppendLine(a.ToSimpleTextString());
 404:                          stringBuilder.AppendLine(horizontalRule);
 405:                          stringBuilder.AppendLine();
 406:                      }
 407:   
 408:                      if (serviceRequestServiceList != null && serviceRequestServiceList.Count > 0)
 409:                      {
 410:                          stringBuilder.AppendLine(horizontalRule);
 411:                          stringBuilder.AppendLine("Service Request Services:");
 412:                          stringBuilder.AppendLine();
 413:                          foreach (var srs in serviceRequestServiceList) stringBuilder.AppendLine(srs.ToSimpleTextString());
 414:                          stringBuilder.AppendLine(horizontalRule);
 415:                          stringBuilder.AppendLine();
 416:                      }
 417:   
 418:                      // out serviceInitialStateList,
 419:   
 420:                      if (serviceRequestList != null && serviceRequestList.Count > 0)
 421:                      {
 422:                          stringBuilder.AppendLine(horizontalRule);
 423:                          stringBuilder.AppendLine("Service Requests:");
 424:                          stringBuilder.AppendLine();
 425:                          foreach (var sr in serviceRequestList) stringBuilder.AppendLine(sr.ToSimpleTextString());
 426:                          stringBuilder.AppendLine(horizontalRule);
 427:                          stringBuilder.AppendLine();
 428:                      }
 429:   
 430:                      //out serviceRequestTypeList, out serviceRequestOntList, out serviceRequestOntDetailList, out reportList, out reportHistoryList
 431:   
 432:                      if (result.HasWarning)
 433:                      {
 434:                          stringBuilder.AppendLine(horizontalRule);
 435:                          stringBuilder.AppendLine(result.Message);
 436:                          stringBuilder.AppendLine();
 437:                          stringBuilder.AppendLine(horizontalRule);
 438:                          stringBuilder.AppendLine();
 439:                      }
 440:                      else
 441:                      {
 442:                          stringBuilder.AppendLine(horizontalRule);
 443:                          stringBuilder.AppendLine(result.Message);
 444:                          stringBuilder.AppendLine();
 445:                          stringBuilder.AppendLine(horizontalRule);
 446:                          stringBuilder.AppendLine();
 447:                      }
 448:                  }
 449:                  else
 450:                  {
 451:                      stringBuilder.AppendLine(horizontalRule);
 452:                      stringBuilder.AppendLine(result.Message);
 453:                      stringBuilder.AppendLine();
 454:                      stringBuilder.AppendLine(horizontalRule);
 455:                      stringBuilder.AppendLine();
 456:                  }
 457:              }
 458:              else
 459:              {
 460:                  stringBuilder.AppendLine(horizontalRule);
 461:                  stringBuilder.AppendLine("Error: opcode: [" + opcode + "] is unrecognized. ");
 462:                  stringBuilder.AppendLine(horizontalRule);
 463:                  stringBuilder.AppendLine();
 464:              }
 465:   
 466:              contentStringBuilder = stringBuilder.Replace(Environment.NewLine + horizontalRule, horizontalRule);
 467:          }
 468:   
 469:          ////////////////////////////////////////////////////////////////////////////
 470:          ////////////////////////////////////////////////////////////////////////////    
 471:      }
 472:   
 473:      ////////////////////////////////////////////////////////////////////////////
 474:      ////////////////////////////////////////////////////////////////////////////   
 475:  }