45 using System.Collections.Generic;
48 using System.Text.RegularExpressions;
116 if (!
System.IO.File.Exists(
this.File_okwdocu_xml))
118 System.Console.WriteLine(
"= End Logmessenger.Logmessenger() with exception!");
119 throw new FileNotFoundException(
"File not found! '" + this.File_okwdocu_xml +
"'");
123 this.MyXPathDocument =
new XPathDocument(this.File_okwdocu_xml);
124 this.MyXPathNavigator = this.MyXPathDocument.CreateNavigator();
128 #endregion Constructors
146 #endregion Properties
157 string lvs_Return =
string.Empty;
173 Log.Logger.Instance.LogFunctionStartDebug(this.GetType().FullName +
".ReadKeyWordName",
"KeyWordSymbol", KeyWordSymbol);
175 string lvs_temp =
"!!" + KeyWordSymbol;
177 string lvsXPath =
"//okwentry[@keyword='" + KeyWordSymbol +
"']//keyword/" + this.AL.
Language;
179 Log.Logger.Instance.LogPrintDebug(lvsXPath);
181 XPathNodeIterator iter = this.MyXPathNavigator.Select(lvsXPath);
183 while (iter.MoveNext())
185 lvs_temp = iter.Current.Value;
188 Log.Logger.Instance.LogFunctionEndDebug(lvs_temp);
static OKW_Ini Instance
Singelton-Pattern: Instanz gibt die aktuelle, gültige und einzige Innstanz der Klasse zurück...
OKW_Docu()
This constructor has no Parameter and uses the default values for the config-file and Actual/default ...
http://de.wikipedia.org/wiki/ISO-3166-1-Kodierliste
string GetKWForCurrentLanguage(string KeyWord)
Gets the KeyWordName for Language.
static T Instance
Holt die einzige Instanz dieser Klasse.
OKW_Enviroment OKW_Enviroment
Dieses Feld hält den Abschnitt OKW_Enviroment der OKW_Ini.xml vor.
XPathNavigator MyXPathNavigator
Stellt ein Cursormodell für die Navigation und Bearbeitung von XML-Daten bereit.
string ReadKeyWordName(string KeyWordSymbol)
This method gets the Keywordname depending an the Language.
XPathDocument MyXPathDocument
Feld enthält den Pfad und den Dateinamen der XML-Datei, die als Datenquelle Dient.
string Folder_XML
Property get/set von __Folder_XML.
static OKW_Docu Instance
Holt die einzige Instanz dieser Klasse.
Designpattern: Singelton Hier gilt das Highlander Prinzip: "Es kann nur einen geben". D.h. nur eine Instanz dieser Klasse, die für das Lesen der Nachrichten Zuständig ist. Diese Klasse selbst ist eine OKW-Fundametalklasse und gibt keine Nachrichten aus. TODO: Nachricht weiter-Linken auf einen Andren Tag. Ziel: Wiederkehrende Nachrichten werden nur einmal gepflegt.
static readonly OKW_Docu instance
Instance des Singelton.
OKW.OKW_Ini ist die Klasse zur Konfigurationsdatei OKW_Ini.xml.
string Language
Gets or sets a string property.