OpenKeyWord  Version: 426, Datum:
AnyWinBase.cs
1 #region Header
2 /*
3  ==============================================================================
4  Author: Zoltan Hrabovszki <zh@openkeyword.de>
5 
6  Copyright © 2012, 2013, 2014, 2015 IT-Beratung Hrabovszki
7  www.OpenKeyWord.de
8  ==============================================================================
9 
10  This file is part of OpenKeyWord.
11 
12  OpenKeyWord is free software: you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation, either version 3 of the License, or
15  (at your option) any later version.
16 
17  OpenKeyWord is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with OpenKeyWord. If not, see <http://www.gnu.org/licenses/>.
24 
25  Diese Datei ist Teil von OpenKeyWord.
26 
27  OpenKeyWord ist Freie Software: Sie können es unter den Bedingungen
28  der GNU General Public License, wie von der Free Software Foundation,
29  Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
30  veröffentlichten Version, weiterverbreiten und/oder modifizieren.
31 
32  OpenKeyWord wird in der Hoffnung, dass es nützlich sein wird, aber
33  OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
34  Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
35  Siehe die GNU General Public License für weitere Details.
36 
37  Sie sollten eine Kopie der GNU General Public License zusammen mit
38  OpenKeyWord erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
39 */
40 #endregion Header
41 
42 namespace OKW.GUI
43 {
44  using System;
45  using System.Collections.Generic;
46  using System.Linq;
47  using System.Text;
48  using System.Threading;
49 
50  using OKW.Log;
51 
55  public abstract class AnyWinBase
56  {
57  #region Fields
58 
59  //protected string locator = "Not Defined";
60  private OKWLocator _locator;
61  #endregion Fields
62 
63  #region Constructors
64  public AnyWinBase()
65  {
66  this._locator = new OKWLocator("");
67  }
68 
69 
70  public AnyWinBase(string fpsLocator, params OKWLocator[] fpLocators )
71  {
72  if ( fpLocators != null )
73  {
74  this._locator = new OKWLocator(fpsLocator, fpLocators);
75  }
76  else
77  {
78  this._locator = new OKWLocator(fpsLocator);
79  }
80  }
81 
82  #endregion Constructors
83 
84  #region Properties
85 
97  public string Locator
98  {
99  get
100  {
101  return this._locator.locator;
102  }
103  }
104 
105  public OKWLocator LOCATOR
106  {
107  get
108  {
109  return this._locator;
110  }
111  }
112  #endregion Properties
113 
114  #region Methods
115 
135  public void LogFunctionStartDebug(string fpsMethodName, string P1_Name, string P1_Value)
136  {
137  Logger.Instance.LogFunctionStartDebug(this.GetType().FullName + "." + fpsMethodName, P1_Name, P1_Value);
138  }
139 
151  protected void LogFunctionEndDebug()
152  {
153  Logger.Instance.LogFunctionEndDebug();
154  }
155 
156 
171  protected void LogFunctionEndDebug(string fpsReturn)
172  {
173  Logger.Instance.LogFunctionEndDebug(fpsReturn);
174  }
175 
176 
190  protected void LogFunctionEndDebug(bool fpbReturn)
191  {
192  Logger.Instance.LogFunctionEndDebug(fpbReturn);
193  }
194 
209  protected void LogFunctionEndDebug(List<string> fpLsReturn)
210  {
211  Logger.Instance.LogFunctionEndDebug(fpLsReturn);
212  }
213 
229  protected void LogFunctionStartDebug(string fpsMethodName)
230  {
231  Logger.Instance.LogFunctionStartDebug(this.GetType().FullName + "." + fpsMethodName);
232  }
233 
234  #endregion Methods
235  }
236 }
void LogFunctionEndDebug()
Diese Methode ruft die Methode Logger.Instance.LogFunctionEndDebug() auf.
Definition: AnyWinBase.cs:151
Description of AnyWin.
Definition: AnyWinBase.cs:55
void LogFunctionStartDebug(string fpsMethodName, string P1_Name, string P1_Value)
Diese Methode ruft die Methode Logger.Instance.LogFunctionStartDebug(string,string,string), und erweitert den gegebenen Methodenname in fps_FunctionName mit this.GetType().FullName um den Klassenbezeichner.
Definition: AnyWinBase.cs:135
Description of OKWLocator.
Definition: OKWLocator.cs:52
void LogFunctionStartDebug(string fpsMethodName)
Diese Methode ruft die Methode Logger.Instance.LogFunctionStartDebug(fps_FunctionName), und erweitert den gegebenen Methodenname in fps_FunctionName mit this.GetType().FullName um den Klassenbezeichner.
Definition: AnyWinBase.cs:229
void LogFunctionEndDebug(bool fpbReturn)
Diese Methode ruft die Methode Logger.Instance.LogFunctionEndDebug(bool) auf.
Definition: AnyWinBase.cs:190
Definition: Core.cs:40
void LogFunctionEndDebug(string fpsReturn)
Diese Methode ruft die Methode Logger.Instance.LogFunctionEndDebug(string) auf.
Definition: AnyWinBase.cs:171
void LogFunctionEndDebug(List< string > fpLsReturn)
Diese Methode ruft die Methode Logger.Instance.LogFunctionEndDebug(List>string<) auf.
Definition: AnyWinBase.cs:209