45 using System.Collections.Generic;
48 using System.Text.RegularExpressions;
236 #endregion Constructors
275 #endregion Properties
310 this.Log.LogFunctionStartDebug(
"CallMethod",
"string fpsMethod", fpsMethod);
313 Type myTypeObject = this.cvoObject.GetType();
314 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
315 BindingFlags.Public | BindingFlags.Instance,
320 if (myMethodInfo == null)
323 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
329 myMethodInfo.Invoke(this.cvoObject, null);
334 this.Log.LogFunctionEndDebug();
370 public void CallMethod(
string fpsMethod, List<string> fpLsParameter)
372 this.Log.LogFunctionStartDebug(
"CallMethod",
"string fpsMethod", fpsMethod,
"List<string> fplsParameter", fpLsParameter.ToString());
373 object[] lvoParameter =
new object[1];
374 lvoParameter[0] = fpLsParameter;
377 Type myTypeObject = this.cvoObject.GetType();
378 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
379 BindingFlags.Public | BindingFlags.Instance,
381 new Type[] { typeof(List<string>) },
384 if (myMethodInfo == null)
387 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
393 myMethodInfo.Invoke(this.cvoObject, lvoParameter);
398 this.Log.LogFunctionEndDebug();
438 public void CallMethod(
string fpsMethod, List<string> fpLsParameter_1,
string fpsParameter_2)
440 this.Log.LogFunctionStartDebug(
"CallMethod",
"string fpsMethod", fpsMethod,
"List<string> fpLsParameter_1", fpLsParameter_1.ToString(),
"string fpsParameter_2", fpsParameter_2);
441 object[] lvoParameter =
new object[2];
443 lvoParameter[0] = fpLsParameter_1;
444 lvoParameter[1] = fpsParameter_2;
447 Type myTypeObject = this.cvoObject.GetType();
448 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
449 BindingFlags.Public | BindingFlags.Instance,
451 new Type[] {typeof(List<string>), typeof(string)},
454 if (myMethodInfo == null)
457 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
463 myMethodInfo.Invoke(this.cvoObject, lvoParameter);
468 this.Log.LogFunctionEndDebug();
503 public void CallMethod(
string fpsMethod,
string fpsParameter_1)
505 this.Log.LogFunctionStartDebug(
"CallMethod",
"string fpsMethod", fpsMethod,
"string fps_Parameter_1", fpsParameter_1);
506 object[] lvoParameter =
new object[1];
507 lvoParameter[0] = fpsParameter_1;
510 Type myTypeObject = this.cvoObject.GetType();
511 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
512 BindingFlags.Public | BindingFlags.Instance,
514 new Type[] { typeof(string) },
517 if (myMethodInfo == null)
520 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
526 myMethodInfo.Invoke(this.cvoObject, lvoParameter);
531 this.Log.LogFunctionEndDebug();
570 public void CallMethod(
string fpsMethod,
string fpsParameter_1,
string fpsParameter_2)
572 this.Log.LogFunctionStartDebug(
"CallMethod",
"string fpsMethod", fpsMethod,
"string fps_Parameter_1", fpsParameter_1,
"string fps_Parameter_2", fpsParameter_2);
573 object[] lvoParameter =
new object[2];
574 lvoParameter[0] = fpsParameter_1;
575 lvoParameter[1] = fpsParameter_2;
578 Type myTypeObject = this.cvoObject.GetType();
579 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
580 BindingFlags.Public | BindingFlags.Instance,
582 new Type[] { typeof(string), typeof(string) },
585 if (myMethodInfo == null)
588 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
594 myMethodInfo.Invoke(this.cvoObject, lvoParameter);
599 this.Log.LogFunctionEndDebug();
641 public void CallMethod(
string fpsMethod,
string fpsParameter_1,
string fpsParameter_2,
string fpsParameter_3)
643 this.Log.LogFunctionStartDebug(
"CallMethod",
644 "string fpsMethod", fpsMethod,
645 "string fpsParameter_1", fpsParameter_1,
646 "string fpsParameter_2", fpsParameter_2,
647 "string fpsParameter_3", fpsParameter_3);
648 object[] lvoParameter =
new object[3];
649 lvoParameter[0] = fpsParameter_1;
650 lvoParameter[1] = fpsParameter_2;
651 lvoParameter[2] = fpsParameter_3;
654 Type myTypeObject = this.cvoObject.GetType();
655 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
656 BindingFlags.Public | BindingFlags.Instance,
658 new Type[] {typeof(string), typeof(string), typeof(string)},
661 if (myMethodInfo == null)
664 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
670 myMethodInfo.Invoke(this.cvoObject, lvoParameter);
675 this.Log.LogFunctionEndDebug();
717 public void CallMethod(
string fpsMethod,
string fpsParameter_1,
string fpsParameter_2, List<string> fpLsValue)
719 this.Log.LogFunctionStartDebug(
"CallMethod",
720 "string fpsMethod", fpsMethod,
721 "string fpsParameter_1", fpsParameter_1,
722 "string fpsParameter_2", fpsParameter_2,
723 "string fpsLValue",
"fpLsValue.ToString");
724 object[] lvoParameter =
new object[3];
725 lvoParameter[0] = fpsParameter_1;
726 lvoParameter[1] = fpsParameter_2;
727 lvoParameter[2] = fpLsValue;
730 Type myTypeObject = this.cvoObject.GetType();
731 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
732 BindingFlags.Public | BindingFlags.Instance,
734 new Type[] {typeof(string), typeof(string), typeof(List<string>)},
737 if (myMethodInfo == null)
740 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
746 myMethodInfo.Invoke(this.cvoObject, lvoParameter);
751 this.Log.LogFunctionEndDebug();
787 bool lvbReturn =
false;
788 this.Log.LogFunctionStartDebug(
"CallMethodWithReturn",
789 "string fpsMethod", fpsMethod);
792 Type myTypeObject = this.cvoObject.GetType();
793 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
794 BindingFlags.Public | BindingFlags.Instance,
799 if (myMethodInfo == null)
802 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
808 lvbReturn = (bool)myMethodInfo.Invoke(
this.cvoObject, null);
813 this.Log.LogFunctionEndDebug(lvbReturn);
855 bool lvbReturn =
false;
856 object[] lvoParameter =
new object[1];
857 lvoParameter[0] = fpbParameter_1;
858 this.Log.LogFunctionStartDebug(
"CallMethodReturn_BooleanPb",
859 "string fpsMethod", fpsMethod,
860 "bool fpsParameter_1", fpbParameter_1.ToString());
863 Type myTypeObject = this.cvoObject.GetType();
864 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
865 BindingFlags.Public | BindingFlags.Instance,
867 new Type[] {typeof(bool)},
870 if (myMethodInfo == null)
873 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
879 lvbReturn = (bool)myMethodInfo.Invoke(
this.cvoObject, lvoParameter);
884 this.Log.LogFunctionEndDebug(lvbReturn);
924 this.Log.LogFunctionStartDebug(
"CallMethodReturn_Int",
925 "string fpsMethod", fpsMethod);
928 Type myTypeObject = this.cvoObject.GetType();
929 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
930 BindingFlags.Public | BindingFlags.Instance,
935 if (myMethodInfo == null)
938 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
944 lviReturn = (int)myMethodInfo.Invoke(
this.cvoObject, null);
952 this.Log.LogFunctionEndDebug(lviReturn.ToString());
956 this.Log.LogFunctionEndDebug();
995 List<string> lvLsReturn =
new List<string>();
997 this.Log.LogFunctionStartDebug(
"CallMethodReturn_ListString",
998 "string fpsMethod", fpsMethod);
1001 Type myTypeObject = this.cvoObject.GetType();
1002 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
1003 BindingFlags.Public | BindingFlags.Instance,
1008 if (myMethodInfo == null)
1011 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
1017 lvLsReturn = (List<string>)myMethodInfo.Invoke(
this.cvoObject, null);
1025 this.Log.LogFunctionEndDebug(lvLsReturn);
1029 this.Log.LogFunctionEndDebug();
1074 List<string> lvLsReturn =
new List<string>();
1075 object[] lvoParameter =
new object[2];
1077 lvoParameter[0] = fpsParam1;
1078 lvoParameter[1] = fpsParam2;
1079 this.Log.LogFunctionStartDebug(
"CallMethodReturn_ListString",
1080 "string fpsMethod", fpsMethod,
1081 "string fpsParam1", fpsParam1,
1082 "string fpsParam2", fpsParam2);
1085 Type myTypeObject = this.cvoObject.GetType();
1086 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
1087 BindingFlags.Public | BindingFlags.Instance,
1089 new Type[] {typeof(string), typeof(string)},
1092 if (myMethodInfo == null)
1095 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
1101 lvLsReturn = (List<string>)myMethodInfo.Invoke(
this.cvoObject, lvoParameter);
1109 this.Log.LogFunctionEndDebug(lvLsReturn);
1113 this.Log.LogFunctionEndDebug();
1154 List<string> lvLsReturn =
new List<string>();
1155 object[] lvoParameter =
new object[1];
1157 lvoParameter[0] = fpLsParameter_1;
1158 this.Log.LogFunctionStartDebug(
"CallMethodWithReturn",
1159 "string fpsMethod", fpsMethod,
1160 "List<string> fpLsParameter_1", fpLsParameter_1.ToString());
1163 Type myTypeObject = this.cvoObject.GetType();
1164 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
1165 BindingFlags.Public | BindingFlags.Instance,
1167 new Type[] {typeof(List<string>)},
1170 if (myMethodInfo == null)
1173 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
1179 lvLsReturn = (List<string>)myMethodInfo.Invoke(
this.cvoObject, lvoParameter);
1187 this.Log.LogFunctionEndDebug(lvLsReturn);
1191 this.Log.LogFunctionEndDebug();
1240 List<string> lvLsReturn =
new List<string>();
1241 object[] lvoParameter =
new object[3];
1243 lvoParameter[0] = fpsParameter_1;
1244 lvoParameter[1] = fpsParameter_2;
1245 lvoParameter[2] = fpLsParameter_3;
1246 this.Log.LogFunctionStartDebug(
"CallMethodReturn_ListString",
1247 "string fpsMethod", fpsMethod,
1248 "string fpsParam1", fpsParameter_1,
1249 "string fpsParameter_2", fpsParameter_2,
1250 "List<string> fpLsParameter_3", fpLsParameter_3.ToString());
1253 Type myTypeObject = this.cvoObject.GetType();
1254 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod);
1256 if (myMethodInfo == null)
1259 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
1265 lvLsReturn = (List<string>)myMethodInfo.Invoke(
this.cvoObject, lvoParameter);
1273 this.Log.LogFunctionEndDebug(lvLsReturn);
1277 this.Log.LogFunctionEndDebug();
1316 string lvsReturn =
string.Empty;
1318 this.Log.LogFunctionStartDebug(
"CallMethodWithReturn",
1319 "string fpsMethod", fpsMethod);
1322 Type myTypeObject = this.cvoObject.GetType();
1323 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
1324 BindingFlags.Public | BindingFlags.Instance,
1329 if (myMethodInfo == null)
1332 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
1338 lvsReturn = (string)myMethodInfo.Invoke(
this.cvoObject, null);
1346 this.Log.LogFunctionEndDebug(lvsReturn);
1350 this.Log.LogFunctionEndDebug();
1391 string lvsReturn =
string.Empty;
1392 object[] lvoParameter =
new object[1];
1394 lvoParameter[0] = fpsParameter_1;
1395 this.Log.LogFunctionStartDebug(
"CallMethodWithReturn",
1396 "string fpsMethod", fpsMethod,
1397 "string fpsParameter_1", fpsParameter_1);
1400 Type myTypeObject = this.cvoObject.GetType();
1401 MethodInfo myMethodInfo = myTypeObject.GetMethod(fpsMethod,
1402 BindingFlags.Public | BindingFlags.Instance,
1404 new Type[] {typeof(string)},
1407 if (myMethodInfo == null)
1410 string errorText = this.LM.
GetMessage(
"CallMethod",
"MethodNotDefined", fpsMethod);
1416 lvsReturn = (string)myMethodInfo.Invoke(
this.cvoObject, lvoParameter);
1424 this.Log.LogFunctionEndDebug(lvsReturn);
1428 this.Log.LogFunctionEndDebug();
1454 bool lvb_Return =
false;
1456 this.Log.LogFunctionStartDebug(
"CurrentObject.GetObjectName");
1462 Regex rx =
new Regex(
@"^\w+");
1464 if (rx.IsMatch(fpsFunctionalname))
1471 string errorText = this.LM.
GetMessage(
"CheckCharacter",
"OKWFrameObjectIllegalNameCharacterException", fpsFunctionalname);
1480 this.Log.LogFunctionEndDebug(lvb_Return);
1484 this.Log.LogFunctionEndDebug();
1507 object lvoReturn =
new object();
1509 this.Log.LogFunctionStartDebug(
"CurrentObject.GetCurrentObject");
1519 this.Log.LogFunctionEndDebug(this.cvoObject.GetType().FullName);
1523 this.Log.LogFunctionEndDebug();
1546 string lvsReturn =
string.Empty;;
1548 this.Log.LogFunctionStartDebug(
"CurrentObject.GetObjectName");
1558 this.Log.LogFunctionEndDebug(lvsReturn);
1562 this.Log.LogFunctionEndDebug();
1585 Logger.Instance.LogFunctionStartDebug(
"CurrentObject.Init");
1589 this.cvoObject = null;
1590 this.cvsChildName =
string.Empty;
1591 this.cvsWindowName =
string.Empty;
1592 this.cvsObjectName =
string.Empty;
1593 this.myFrameObjectDictionary = null;
1598 Logger.Instance.LogFunctionEndDebug();
1633 Logger.Instance.LogFunctionStartDebug(
"CurrentObject.LogObjectData");
1642 catch (SystemException e)
1650 Logger.Instance.LogFunctionEndDebug();
1681 this.Log.LogFunctionStartDebug(
"CurrentObject.SetChildName",
"string fpsChildName", fpsChildName);
1685 if (this.cvsWindowName !=
string.Empty)
1687 this.Log.
LogPrintDebug(this.LM.
GetMessage(
"SetChildName",
"SetChildwindowNameDebug",
this.cvsWindowName,
this.cvsChildName));
1688 this.cvsChildName = fpsChildName;
1695 string ErrorText = this.LM.
GetMessage(
"SetChildName",
"OKWFrameObjectWindowNotSetException");
1703 this.Log.LogFunctionEndDebug(this.cvoObject.GetType().FullName);
1707 this.Log.LogFunctionEndDebug();
1736 object lvoReturn =
new object();
1738 this.Log.LogFunctionStartDebug(
"CurrentObject.SetWindowName",
"string fpsWindowName", fpsWindowName);
1741 this.cvsWindowName = fpsWindowName;
1742 this.cvsChildName =
string.Empty;
1751 this.Log.LogFunctionEndDebug(lvoReturn.ToString());
1755 this.Log.LogFunctionEndDebug();
1779 this.Log.LogFunctionStartDebug(
"CurrentObject.ResetToWindow");
1783 this.cvsChildName =
string.Empty;
1791 this.Log.LogFunctionEndDebug(this.cvoObject.GetType().FullName);
1795 this.Log.LogFunctionEndDebug();
1825 this.Log.LogFunctionStartDebug(
"CurrentObject.UpdateObject");
1828 if (this.cvsChildName ==
string.Empty)
1833 this.cvsObjectName = this.cvoObject.GetType().Name;
1838 this.cvsObjectName = this.cvsWindowName +
"." + this.
cvsChildName;
1840 this.cvoObject = this.myFrameObjectDictionary.
GetChildObjectByName(this.cvsWindowName, this.cvsChildName);
1845 this.Log.LogFunctionEndDebug();
string GetMessage(string MethodName, string TextKey)
Holt die Log-Meldung für MethodeNmae/Textkey ohne weitere Parameter.
bool CallMethodReturn_BooleanPb(string fpsMethod, bool fpbParameter_1)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
Diese Klasse verwaltet das aktuelle GUI-Objekt.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void ResOpenList(string fps_Name)
Creates a new hierarchical level in the results file. Use ResOpenList to start a new hierarchical lev...
string cvsChildName
Die Eigenschaft enthält den fachlichen Namen des aktuellen Kindobjektes.
object ResetToWindow()
Das aktuelle Objekt wird auf das Fenster zurückgesetzt. Kindobjekt wird gelöscht. ...
string cvsObjectName
Vollständiger "technischer Name" des aktuellen Objektes "WindowName.ChildObjectName".
string GetObjectName()
Ermittelt den ObjektNamen des aktuellen Objektes.
void UpdateObject()
Methode aktualisert zwei Werte:
List< string > CallMethodReturn_ListString(string fpsMethod, string fpsParam1, string fpsParam2)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
void CallMethod(string fpsMethod, string fpsParameter_1, string fpsParameter_2, List< string > fpLsValue)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
string CallMethodReturn_String(string fpsMethod)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
object SetChildName(string fpsChildName)
Setzt das Kindobjekt.
string cvsWindowName
Eigenschaft enthält den fachlichen Namen des aktuellen Fensters. Auf dieses Fenster beziehen sich all...
LogMessenger LM
Hält eine Referenz auf die Klasse LogMessenger für die sprachabhängige Log-Ausgabe vor...
void CallMethod(string fpsMethod, List< string > fpLsParameter_1, string fpsParameter_2)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
Logger Log
Hält eine Referenz auf die Klasse Logger vor.
object SetWindowName(string fpsWindowName)
Hier wird der Kontext auf ein Fenster gesetzt.
List< string > CallMethodReturn_ListString(string fpsMethod, string fpsParameter_1, string fpsParameter_2, List< string > fpLsParameter_3)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
void CallMethod(string fpsMethod, string fpsParameter_1, string fpsParameter_2, string fpsParameter_3)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
object GetParentObjectByName(string fpsParentObject)
Die Methode liefert das Frame-Object des gegebenen Fensterobjektes zurück.
Verwaltet zentral die Frame-Klassen: Instanziert Frame-Klassen zu Frame-Objekten und liefert die Refe...
void CallMethod(string fpsMethod, List< string > fpLsParameter)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
int CallMethodReturn_Int(string fpsMethod)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
string CallMethodReturn_String(string fpsMethod, string fpsParameter_1)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
CurrentObject()
Initialisiert eine neue Instanz der OKW.CurrentObject Klasse Nicht öffentlicher Konstruktor: Verwende...
FrameObjectDictionary myFrameObjectDictionary
Diese Übersicht enthält alle besuchten/ genutzten "Frame Objects".
void Init()
Führt die Initialisierung der Klasse durch: Es werden alle Felder der Klasse auf einen definierten An...
object GetCurrentObject()
Liefert die Referenz zum aktuellen Frame-Object. Referenz ist im Feld cvoObject abgelegt.
bool CheckCharacter(string fpsFunctionalname)
Diese Methode prüft den fachlichen Objektnamen auf "erlaubte" Zeichen.
LogMessenger liest Log-Meldungen sprachspezifisch für die im Konstruktor gegeben Klasse aus der Zugeh...
Diese Ausnahme wird ausgelöst, wenn kein Fenster Objekt ausgewählt/gesetzt worden ist bevor ein Kindo...
void CallMethod(string fpsMethod, string fpsParameter_1)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
void LogPrintDebug(string fpsMessage)
Loggt eine Nachricht.
string cvsObjectFunctionalName
Vollständiger "funktionaler Name" des aktuellen Objektes "WindowName.ChildObjectName".
List< string > CallMethodReturn_ListString(string fpsMethod)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
Baisklasse für das lesen von OKW *Log.xml Dateien Designpattern: Singelton Hier gilt das Highlander P...
List< string > CallMethodReturn_ListString(string fpsMethod, List< string > fpLsParameter_1)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
void CallMethod(string fpsMethod, string fpsParameter_1, string fpsParameter_2)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf.
object GetChildObjectByName(string fps_ParentObject, string fps_ChildObject)
Die Methode liefert das Objekt des gegebenen Kindobjekttests zurück.
void CallMethod(string fpsMethod)
Gibt die Instanz für die einzige Instanz dieser Klasse zurück. Hinweis:
object cvoObject
Singelton-Class: Instanz enthält die Object-Referenzierung des CurrentObject.
void LogObjectData()
Methode gibt alle wichtigen Informationen zum aktuellen Objekt aus. Diese soll im Fehler- oder Ausnah...
bool CallMethodReturn_Boolean(string fpsMethod)
Ruft eine Methode des aktuellen Objektes via "late bound function call" auf. Die aufgerufene Methode ...
void ResCloseList()
Closes a hierarchical level in the results file that was opened with ResOpenList. Use ResOpenList to ...