شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

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.Huawei.EmsDev> emsDevList;
  42:          private static List<Ia.Ngn.Cl.Model.Huawei.EmsBoard> emsBoardList;
  43:          private static List<Ia.Ngn.Cl.Model.Huawei.EmsPort> emsPortList;
  44:          private static List<Ia.Ngn.Cl.Model.Ui.Huawei.EmsOnt> emsOntList;
  45:          private static List<Ia.Ngn.Cl.Model.Huawei.EmsOntSipInfo> emsOntSipInfoList;
  46:          private static List<Ia.Ngn.Cl.Model.Huawei.EmsVoipPstnUser> emsVoipPstnUserList;
  47:          private static List<Ia.Ngn.Cl.Model.Event> eventList;
  48:          private static List<Ia.Ngn.Cl.Model.Access> accessList;
  49:          private static List<Ia.Ngn.Cl.Model.Ui.ServiceRequestService> serviceRequestServiceList;
  50:          private static List<Ia.Ngn.Cl.Model.ServiceInitialState> serviceInitialStateList;
  51:          private static List<Ia.Ngn.Cl.Model.ServiceRequest> serviceRequestList;
  52:          private static List<Ia.Ngn.Cl.Model.ServiceRequestHistory> serviceRequestHistoryList;
  53:          private static List<Ia.Ngn.Cl.Model.ServiceRequestType> serviceRequestTypeList;
  54:          private static List<Ia.Ngn.Cl.Model.ServiceRequestOnt> serviceRequestOntList;
  55:          private static List<Ia.Ngn.Cl.Model.ServiceRequestOntDetail> serviceRequestOntDetailList;
  56:          private static List<Ia.Ngn.Cl.Model.Report> reportList;
  57:          private static List<Ia.Ngn.Cl.Model.ReportHistory> reportHistoryList;
  58:   
  59:          /// <summary/>
  60:          [DataMember(Name = "serviceList")]
  61:          public List<Ia.Ngn.Cl.Model.Ui.Service2> ServiceList { get; set; }
  62:   
  63:          /// <summary/>
  64:          [DataMember(Name = "result")]
  65:          public Ia.Cl.Model.Result Result { get; set; }
  66:   
  67:          /////////////////////////////////////////////////////////////////////////////////
  68:   
  69:          /// <summary>
  70:          ///
  71:          /// </summary>
  72:          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)
  73:          {
  74:              string inputType;
  75:              result = new Ia.Cl.Model.Result();
  76:   
  77:              inputType = string.Empty;
  78:              serviceList = null;
  79:   
  80:              if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteMaintenanceFind(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Read, staffContact))
  81:              {
  82:                  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 emsDevList, out emsBoardList, out emsPortList, out emsOntList, out emsOntSipInfoList, out emsVoipPstnUserList, out eventList, out accessList, out serviceRequestServiceList, out serviceInitialStateList, out serviceRequestList, out serviceRequestHistoryList, out serviceRequestTypeList, out serviceRequestOntList, out serviceRequestOntDetailList, out reportList, out reportHistoryList, out result);
  83:   
  84:                  if (!result.HasError)
  85:                  {
  86:   
  87:                  }
  88:                  else
  89:                  {
  90:   
  91:                  }
  92:              }
  93:              else
  94:              {
  95:                  result.AddError("You are not authorized to modify this value (لست مخولاً بتعديل هذه القيمة). ");
  96:              }
  97:          }
  98:   
  99:          /////////////////////////////////////////////////////////////////////////////////
 100:   
 101:          /// <summary>
 102:          ///
 103:          /// </summary>
 104:          public static void SearchForMail(Ia.Ngn.Cl.Model.Business.Administration.StaffContact staffContact, string opcode, string operand, out string subject, out StringBuilder contentStringBuilder)
 105:          {
 106:              string inputType, horizontalRule;
 107:              DateTime now;
 108:   
 109:              inputType = string.Empty;
 110:              horizontalRule = "===============================================";
 111:   
 112:              now = DateTime.UtcNow.AddHours(3);
 113:   
 114:              // subject can't have \r\n
 115:              //responseSubject = "Optical Fiber Network (OFN) Find Result (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
 116:   
 117:              //if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
 118:              //{
 119:              opcode = opcode.ToLower();
 120:   
 121:              SearchForTelegramBotApiAndMailSimpleText(opcode, operand, inputType, horizontalRule, out subject, out contentStringBuilder);
 122:   
 123:              contentStringBuilder.AppendLine(horizontalRule);
 124:              contentStringBuilder.AppendLine(@"Help? Send message with ""mail/maintenance/find/help""");
 125:              contentStringBuilder.AppendLine(horizontalRule);
 126:              contentStringBuilder.AppendLine();
 127:              /*}
 128:               else
 129:               {
 130:                   responseContent += "\r\n";
 131:                   responseContent += "You are not authorized to modify this value. ";
 132:                   responseContent += "\r\n";
 133:               }*/
 134:          }
 135:   
 136:          /////////////////////////////////////////////////////////////////////////////////
 137:   
 138:          /// <summary>
 139:          ///
 140:          /// </summary>
 141:          public static void SearchForTelegramBotApi(string opcode, string operand, out string subject, out string content)
 142:          {
 143:              string inputType, horizontalRule;
 144:              StringBuilder contentStringBuilder;
 145:              DateTime now;
 146:   
 147:              inputType = string.Empty;
 148:              horizontalRule = " ";
 149:   
 150:              now = DateTime.UtcNow.AddHours(3);
 151:   
 152:              //if (Ia.Ngn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ngn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
 153:              //{
 154:              opcode = opcode.ToLower();
 155:   
 156:              SearchForTelegramBotApiAndMailSimpleText(opcode, operand, inputType, horizontalRule, out subject, out contentStringBuilder);
 157:   
 158:              contentStringBuilder.AppendLine(@"Help? Send the command /help");
 159:              contentStringBuilder.AppendLine(horizontalRule);
 160:              contentStringBuilder.AppendLine();
 161:   
 162:              content = contentStringBuilder.ToString();
 163:              //}
 164:              //else
 165:              //{
 166:              //    responseContent += "\r\n";
 167:              //    responseContent += "You are not authorized to modify this value. ";
 168:              //    responseContent += "\r\n";
 169:              //}
 170:          }
 171:   
 172:          ////////////////////////////////////////////////////////////////////////////
 173:   
 174:          /// <summary>
 175:          ///
 176:          /// </summary>
 177:          public static void SearchForTelegramBotApiAndMailSimpleText(string opcode, string operand, string inputType, string horizontalRule, out string subject, out StringBuilder contentStringBuilder)
 178:          {
 179:              StringBuilder stringBuilder;
 180:              DateTime now;
 181:              Ia.Cl.Model.Result result;
 182:   
 183:              stringBuilder = new StringBuilder();
 184:   
 185:              subject = string.Empty;
 186:              now = DateTime.UtcNow.AddHours(3);
 187:   
 188:              if (opcode.Contains("help"))
 189:              {
 190:                  // subject can't have \r\n
 191:                  //subject = "Help:";
 192:   
 193:                  stringBuilder.AppendLine(Ia.Ngn.Cl.Model.Data.Help.Text(opcode));
 194:                  stringBuilder.AppendLine();
 195:              }
 196:              else if (opcode.Contains("find"))
 197:              {
 198:                  // subject can't have \r\n
 199:                  subject = "Optical Fiber Network (OFN) Find Result (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
 200:   
 201:                  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 emsDevList, out emsBoardList, out emsPortList, out emsOntList, out emsOntSipInfoList, out emsVoipPstnUserList, out eventList, out accessList, out serviceRequestServiceList, out serviceInitialStateList, out serviceRequestList, out serviceRequestHistoryList, out serviceRequestTypeList, out serviceRequestOntList, out serviceRequestOntDetailList, out reportList, out reportHistoryList, out result);
 202:   
 203:                  if (result.IsSuccessful)
 204:                  {
 205:                      if (serviceList != null && serviceList.Count > 0)
 206:                      {
 207:                          stringBuilder.AppendLine(horizontalRule);
 208:                          stringBuilder.AppendLine("Services:"); //("Service2s:");
 209:                          stringBuilder.AppendLine();
 210:                          foreach (var s in serviceList) stringBuilder.AppendLine(s.ToSimpleTextString());
 211:                          stringBuilder.AppendLine(horizontalRule);
 212:                          stringBuilder.AppendLine();
 213:                      }
 214:   
 215:                      if (agcfGatewayRecordList != null && agcfGatewayRecordList.Count > 0)
 216:                      {
 217:                          stringBuilder.AppendLine(horizontalRule);
 218:                          stringBuilder.AppendLine("AGCF Gateway Records:");
 219:                          stringBuilder.AppendLine();
 220:                          foreach (var gr in agcfGatewayRecordList) stringBuilder.AppendLine(gr.ToSimpleTextString());
 221:                          stringBuilder.AppendLine(horizontalRule);
 222:                          stringBuilder.AppendLine();
 223:                      }
 224:   
 225:                      if (agcfEndpointList != null && agcfEndpointList.Count > 0)
 226:                      {
 227:                          stringBuilder.AppendLine(horizontalRule);
 228:                          stringBuilder.AppendLine("AGCF Endpoints:");
 229:                          stringBuilder.AppendLine();
 230:                          foreach (var ep in agcfEndpointList) stringBuilder.AppendLine(ep.ToSimpleTextString());
 231:                          stringBuilder.AppendLine(horizontalRule);
 232:                          stringBuilder.AppendLine();
 233:                      }
 234:   
 235:                      if (subPartyList != null && subPartyList.Count > 0)
 236:                      {
 237:                          stringBuilder.AppendLine(horizontalRule);
 238:                          stringBuilder.AppendLine("SubParties:");
 239:                          stringBuilder.AppendLine();
 240:                          foreach (var sp in subPartyList) stringBuilder.AppendLine(sp.ToSimpleTextString());
 241:                          stringBuilder.AppendLine(horizontalRule);
 242:                          stringBuilder.AppendLine();
 243:                      }
 244:   
 245:                      if (subscriberList != null && subscriberList.Count > 0)
 246:                      {
 247:                          stringBuilder.AppendLine(horizontalRule);
 248:                          stringBuilder.AppendLine("Subscribers:");
 249:                          stringBuilder.AppendLine();
 250:                          foreach (var s in subscriberList) stringBuilder.AppendLine(s.ToSimpleTextString());
 251:                          stringBuilder.AppendLine(horizontalRule);
 252:                          stringBuilder.AppendLine();
 253:                      }
 254:   
 255:   
 256:                      if (huSbrList != null && huSbrList.Count > 0)
 257:                      {
 258:                          stringBuilder.AppendLine(horizontalRule);
 259:                          stringBuilder.AppendLine("Sbrs:");
 260:                          stringBuilder.AppendLine();
 261:                          foreach (var h in huSbrList) stringBuilder.AppendLine(h.ToSimpleTextString());
 262:                          stringBuilder.AppendLine(horizontalRule);
 263:                          stringBuilder.AppendLine();
 264:                      }
 265:   
 266:                      if (owsbrList != null && owsbrList.Count > 0)
 267:                      {
 268:                          stringBuilder.AppendLine(horizontalRule);
 269:                          stringBuilder.AppendLine("Owsbrs:");
 270:                          stringBuilder.AppendLine();
 271:                          foreach (var o in owsbrList) stringBuilder.AppendLine(o.ToSimpleTextString());
 272:                          stringBuilder.AppendLine(horizontalRule);
 273:                          stringBuilder.AppendLine();
 274:                      }
 275:   
 276:                      if (nddOntList != null && nddOntList.Count > 0)
 277:                      {
 278:                          stringBuilder.AppendLine(horizontalRule);
 279:                          stringBuilder.AppendLine("Network Design Document ONTs (Standard):");
 280:                          stringBuilder.AppendLine();
 281:                          foreach (var o in nddOntList) stringBuilder.AppendLine(o.ToSimpleTextString());
 282:                          stringBuilder.AppendLine(horizontalRule);
 283:                          stringBuilder.AppendLine();
 284:                      }
 285:   
 286:                      if (ontList != null && ontList.Count > 0)
 287:                      {
 288:                          stringBuilder.AppendLine(horizontalRule);
 289:                          stringBuilder.AppendLine("ONTs (AMS):");
 290:                          stringBuilder.AppendLine();
 291:                          foreach (var o in ontList) stringBuilder.AppendLine(o.ToSimpleTextString());
 292:                          stringBuilder.AppendLine(horizontalRule);
 293:                          stringBuilder.AppendLine();
 294:                      }
 295:   
 296:                      if (ontServiceVoipList != null && ontServiceVoipList.Count > 0)
 297:                      {
 298:                          stringBuilder.AppendLine(horizontalRule);
 299:                          stringBuilder.AppendLine("ONT (AMS) Service VOIPs:");
 300:                          stringBuilder.AppendLine();
 301:                          foreach (var osv in ontServiceVoipList) stringBuilder.AppendLine(osv.ToSimpleTextString());
 302:                          stringBuilder.AppendLine(horizontalRule);
 303:                          stringBuilder.AppendLine();
 304:                      }
 305:   
 306:                      if (ontOntPotsList != null && ontOntPotsList.Count > 0)
 307:                      {
 308:                          stringBuilder.AppendLine(horizontalRule);
 309:                          stringBuilder.AppendLine("ONT (AMS) POTSs:");
 310:                          stringBuilder.AppendLine();
 311:                          foreach (var oop in ontOntPotsList) stringBuilder.AppendLine(oop.ToSimpleTextString());
 312:                          stringBuilder.AppendLine(horizontalRule);
 313:                          stringBuilder.AppendLine();
 314:                      }
 315:   
 316:                      if (emsDevList != null && emsDevList.Count > 0)
 317:                      {
 318:                          stringBuilder.AppendLine(horizontalRule);
 319:                          stringBuilder.AppendLine("DEVs (EMS):");
 320:                          stringBuilder.AppendLine();
 321:                          foreach (var ed in emsDevList) stringBuilder.AppendLine(ed.ToSimpleTextString());
 322:                          stringBuilder.AppendLine(horizontalRule);
 323:                          stringBuilder.AppendLine();
 324:                      }
 325:   
 326:                      if (emsBoardList != null && emsBoardList.Count > 0)
 327:                      {
 328:                          stringBuilder.AppendLine(horizontalRule);
 329:                          stringBuilder.AppendLine("Boards (EMS):");
 330:                          stringBuilder.AppendLine();
 331:                          foreach (var eb in emsBoardList) stringBuilder.AppendLine(eb.ToSimpleTextString());
 332:                          stringBuilder.AppendLine(horizontalRule);
 333:                          stringBuilder.AppendLine();
 334:                      }
 335:   
 336:                      if (emsPortList != null && emsPortList.Count > 0)
 337:                      {
 338:                          stringBuilder.AppendLine(horizontalRule);
 339:                          stringBuilder.AppendLine("Ports (EMS):");
 340:                          stringBuilder.AppendLine();
 341:                          foreach (var ep in emsPortList) stringBuilder.AppendLine(ep.ToSimpleTextString());
 342:                          stringBuilder.AppendLine(horizontalRule);
 343:                          stringBuilder.AppendLine();
 344:                      }
 345:   
 346:                      if (emsOntList != null && emsOntList.Count > 0)
 347:                      {
 348:                          stringBuilder.AppendLine(horizontalRule);
 349:                          stringBuilder.AppendLine("ONTs (EMS):");
 350:                          stringBuilder.AppendLine();
 351:                          foreach (var eo in emsOntList) stringBuilder.AppendLine(eo.ToSimpleTextString());
 352:                          stringBuilder.AppendLine(horizontalRule);
 353:                          stringBuilder.AppendLine();
 354:                      }
 355:   
 356:                      if (emsOntSipInfoList != null && emsOntSipInfoList.Count > 0)
 357:                      {
 358:                          stringBuilder.AppendLine(horizontalRule);
 359:                          stringBuilder.AppendLine("ONTSIPINFOs (EMS):");
 360:                          stringBuilder.AppendLine();
 361:                          foreach (var eosi in emsOntSipInfoList) stringBuilder.AppendLine(eosi.ToSimpleTextString());
 362:                          stringBuilder.AppendLine(horizontalRule);
 363:                          stringBuilder.AppendLine();
 364:                      }
 365:   
 366:                      if (emsVoipPstnUserList != null && emsVoipPstnUserList.Count > 0)
 367:                      {
 368:                          stringBuilder.AppendLine(horizontalRule);
 369:                          stringBuilder.AppendLine("VOIPPSTNUSERs (EMS):");
 370:                          stringBuilder.AppendLine();
 371:                          foreach (var evpu in emsVoipPstnUserList) stringBuilder.AppendLine(evpu.ToSimpleTextString());
 372:                          stringBuilder.AppendLine(horizontalRule);
 373:                          stringBuilder.AppendLine();
 374:                      }
 375:   
 376:                      // , out eventList
 377:   
 378:                      if (accessList != null && accessList.Count > 0)
 379:                      {
 380:                          stringBuilder.AppendLine(horizontalRule);
 381:                          stringBuilder.AppendLine("Accesses:");
 382:                          stringBuilder.AppendLine();
 383:                          foreach (var a in accessList) stringBuilder.AppendLine(a.ToSimpleTextString());
 384:                          stringBuilder.AppendLine(horizontalRule);
 385:                          stringBuilder.AppendLine();
 386:                      }
 387:   
 388:                      if (serviceRequestServiceList != null && serviceRequestServiceList.Count > 0)
 389:                      {
 390:                          stringBuilder.AppendLine(horizontalRule);
 391:                          stringBuilder.AppendLine("Service Request Services:");
 392:                          stringBuilder.AppendLine();
 393:                          foreach (var srs in serviceRequestServiceList) stringBuilder.AppendLine(srs.ToSimpleTextString());
 394:                          stringBuilder.AppendLine(horizontalRule);
 395:                          stringBuilder.AppendLine();
 396:                      }
 397:   
 398:                      // out serviceInitialStateList,
 399:   
 400:                      if (serviceRequestList != null && serviceRequestList.Count > 0)
 401:                      {
 402:                          stringBuilder.AppendLine(horizontalRule);
 403:                          stringBuilder.AppendLine("Service Requests:");
 404:                          stringBuilder.AppendLine();
 405:                          foreach (var sr in serviceRequestList) stringBuilder.AppendLine(sr.ToSimpleTextString());
 406:                          stringBuilder.AppendLine(horizontalRule);
 407:                          stringBuilder.AppendLine();
 408:                      }
 409:   
 410:                      if (serviceRequestHistoryList != null && serviceRequestHistoryList.Count > 0)
 411:                      {
 412:                          stringBuilder.AppendLine(horizontalRule);
 413:                          stringBuilder.AppendLine("Service Request History:");
 414:                          stringBuilder.AppendLine();
 415:                          foreach (var srh in serviceRequestHistoryList) stringBuilder.AppendLine(srh.ToSimpleTextString());
 416:                          stringBuilder.AppendLine(horizontalRule);
 417:                          stringBuilder.AppendLine();
 418:                      }
 419:   
 420:                      //out serviceRequestTypeList, out serviceRequestOntList, out serviceRequestOntDetailList, out reportList, out reportHistoryList
 421:   
 422:                      if (result.HasWarning)
 423:                      {
 424:                          stringBuilder.AppendLine(horizontalRule);
 425:                          stringBuilder.AppendLine(result.Message);
 426:                          stringBuilder.AppendLine();
 427:                          stringBuilder.AppendLine(horizontalRule);
 428:                          stringBuilder.AppendLine();
 429:                      }
 430:                      else
 431:                      {
 432:                          stringBuilder.AppendLine(horizontalRule);
 433:                          stringBuilder.AppendLine(result.Message);
 434:                          stringBuilder.AppendLine();
 435:                          stringBuilder.AppendLine(horizontalRule);
 436:                          stringBuilder.AppendLine();
 437:                      }
 438:                  }
 439:                  else
 440:                  {
 441:                      stringBuilder.AppendLine(horizontalRule);
 442:                      stringBuilder.AppendLine(result.Message);
 443:                      stringBuilder.AppendLine();
 444:                      stringBuilder.AppendLine(horizontalRule);
 445:                      stringBuilder.AppendLine();
 446:                  }
 447:              }
 448:              else
 449:              {
 450:                  stringBuilder.AppendLine(horizontalRule);
 451:                  stringBuilder.AppendLine("Error: opcode: [" + opcode + "] is unrecognized. ");
 452:                  stringBuilder.AppendLine(horizontalRule);
 453:                  stringBuilder.AppendLine();
 454:              }
 455:   
 456:              contentStringBuilder = stringBuilder.Replace(Environment.NewLine + horizontalRule, horizontalRule);
 457:          }
 458:   
 459:          ////////////////////////////////////////////////////////////////////////////
 460:          ////////////////////////////////////////////////////////////////////////////    
 461:      }
 462:   
 463:      ////////////////////////////////////////////////////////////////////////////
 464:      ////////////////////////////////////////////////////////////////////////////   
 465:  }