markus / KCOM / App.xaml.cs @ 38d69491
이력 | 보기 | 이력해설 | 다운로드 (20.8 KB)
1 |
|
---|---|
2 |
using KCOM.Common; |
3 |
using KCOM.Views; |
4 |
using License.Validator; |
5 |
using log4net; |
6 |
using System; |
7 |
using System.ComponentModel; |
8 |
using System.IO; |
9 |
using System.Linq; |
10 |
using System.Net; |
11 |
using System.ServiceModel; |
12 |
using System.Threading.Tasks; |
13 |
using System.Windows; |
14 |
using System.Windows.Input; |
15 |
using System.Windows.Resources; |
16 |
|
17 |
namespace KCOM |
18 |
{ |
19 |
public class OpenProperties |
20 |
{ |
21 |
public string DocumentItemID { get; set; } |
22 |
public bool bPartner { get; set; } |
23 |
public bool CreateFinalPDFPermission { get; set; } |
24 |
public bool NewCommentPermission { get; set; } |
25 |
public string ProjectNO { get; set; } |
26 |
public string UserID { get; set; } |
27 |
public int Mode { get; set; } |
28 |
} |
29 |
/// <summary> |
30 |
/// App.xaml에 대한 상호 작용 논리 |
31 |
/// </summary> |
32 |
public partial class App : Application |
33 |
{ |
34 |
public static PageManager.PageStorage PageStorage; |
35 |
public static string MarkusVersion = ""; |
36 |
public static string BaseAddress; |
37 |
public static string FileUploadUri; |
38 |
public static System.ServiceModel.Channels.Binding _binding; |
39 |
public static EndpointAddress _EndPoint; |
40 |
public static EndpointAddress _EndPoint_SaveLoad; |
41 |
public static EndpointAddress _EndPoint_Symbol; |
42 |
public static string UserName; |
43 |
public static IKCOM.ViewInfo ViewInfo; |
44 |
public static string urlHost; |
45 |
public static string urlPort; |
46 |
public static string urlHost_DB; |
47 |
public static string urlPort_DB; |
48 |
public static string Custom_ViewInfoId; |
49 |
public static bool ParameterMode = false; |
50 |
public static bool isExternal = false; |
51 |
public static bool isAuthenticate = false; |
52 |
public static string AuthenticateToken = null; |
53 |
|
54 |
/// <summary> |
55 |
/// logger |
56 |
/// </summary> |
57 |
public static ILog FileLogger = null; |
58 |
|
59 |
public static StreamResourceInfo DefaultArrowCursor; |
60 |
|
61 |
public static Stream DefaultArrowCursorStream |
62 |
{ |
63 |
get { |
64 |
return Application.GetResourceStream(new Uri(@"pack://application:,,,/Resources/Cursor/customCursor2.cur", UriKind.Absolute)).Stream; |
65 |
//DefaultArrowCursor.Stream.Position = 0; |
66 |
//return DefaultArrowCursor.Stream; |
67 |
} |
68 |
} |
69 |
|
70 |
public static kr.co.devdoftech.cloud.FileUpload FileUploader |
71 |
{ |
72 |
get { return new kr.co.devdoftech.cloud.FileUpload{ Url = FileUploadUri }; } |
73 |
|
74 |
private set {; } |
75 |
} |
76 |
|
77 |
/// <summary> |
78 |
/// VisualStudio Design Time여부 |
79 |
/// </summary> |
80 |
public static bool IsDesignMode |
81 |
{ |
82 |
get |
83 |
{ |
84 |
try |
85 |
{ |
86 |
return DesignerProperties.GetIsInDesignMode(new DependencyObject()); |
87 |
} |
88 |
catch (Exception) |
89 |
{ |
90 |
return false; |
91 |
} |
92 |
} |
93 |
private set { } |
94 |
} |
95 |
|
96 |
/// <summary> |
97 |
/// Application Data Folder |
98 |
/// </summary> |
99 |
public static string AppDataFolder |
100 |
{ |
101 |
get |
102 |
{ |
103 |
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MARKUS"); |
104 |
} |
105 |
} |
106 |
|
107 |
public static IKCOM.KCOM_SystemInfo SystemInfo { get; set; } |
108 |
|
109 |
|
110 |
private static OpenProperties ParamDecoding(string DecodingText, System.Text.Encoding oEncoding = null) |
111 |
{ |
112 |
if (oEncoding == null) |
113 |
oEncoding = System.Text.Encoding.UTF8; |
114 |
|
115 |
byte[] byteArray = Convert.FromBase64String(DecodingText); |
116 |
|
117 |
string jsonBack = oEncoding.GetString(byteArray); |
118 |
|
119 |
return Newtonsoft.Json.JsonConvert.DeserializeObject<OpenProperties>(jsonBack); |
120 |
} |
121 |
|
122 |
private string versionPath = null; |
123 |
//public SplashScreen splash = new SplashScreen("splash.png"); |
124 |
public static SplashScreenWindow splashScreen = new SplashScreenWindow(); |
125 |
|
126 |
public App() |
127 |
{ |
128 |
Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Telerik.Windows.Controls.VisualStudio2013Theme(); |
129 |
|
130 |
App.FileLogger = LogManager.GetLogger(typeof(App)); |
131 |
} |
132 |
|
133 |
protected override void OnExit(ExitEventArgs e) |
134 |
{ |
135 |
try |
136 |
{ |
137 |
if (App.PageStorage != null) |
138 |
{ |
139 |
App.PageStorage.Clear(); |
140 |
} |
141 |
} |
142 |
catch (Exception) |
143 |
{ |
144 |
} |
145 |
|
146 |
base.OnExit(e); |
147 |
} |
148 |
|
149 |
protected override async void OnStartup(StartupEventArgs e) |
150 |
{ |
151 |
try |
152 |
{ |
153 |
DefaultArrowCursor = Application.GetResourceStream(new Uri(@"pack://application:,,,/Resources/Cursor/customCursor2.cur", UriKind.Absolute)); |
154 |
|
155 |
splashScreen.Show(); |
156 |
|
157 |
App.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException; |
158 |
/// up to here |
159 |
//AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); |
160 |
|
161 |
#region // DNS 체크 |
162 |
|
163 |
string localdomain = CommonLib.Common.GetConfigString("HOST_DOMAIN", "DOMAIN", ""); |
164 |
|
165 |
ViewerDataModel.Instance.IsDocumentHistory = Convert.ToBoolean(CommonLib.Common.GetConfigString("COMMON","IsDocumentHistory", "true")); |
166 |
|
167 |
var hostEntry = CommonLib.DNSHelper.GetHostEntryTask(); |
168 |
|
169 |
if (hostEntry == null) |
170 |
{ |
171 |
System.Diagnostics.Debug.WriteLine("(hostEntry == null"); |
172 |
//App.FileLogger.Debug("hostEntry == null"); |
173 |
isExternal = true; |
174 |
} |
175 |
else if (!string.IsNullOrEmpty(localdomain) && !hostEntry.HostName.ToUpper().EndsWith(localdomain.ToUpper())) |
176 |
{ |
177 |
// 외부 사용자 |
178 |
App.FileLogger.Debug(string.Format("You are external user because located out side of given domain({0})\nYour domain is {1}", localdomain, hostEntry.HostName)); |
179 |
isExternal = true; |
180 |
} |
181 |
#endregion |
182 |
|
183 |
|
184 |
if (e.Args.Count() > 0) |
185 |
{ |
186 |
var result = ParamDecoding(e.Args[0].Replace(@"kcom://", "").Replace(@"/", "")); |
187 |
App.ViewInfo = new IKCOM.ViewInfo |
188 |
{ |
189 |
DocumentItemID = result.DocumentItemID, |
190 |
EnsembleID = result.DocumentItemID, |
191 |
//DocumentItemID = "10001", |
192 |
bPartner = result.bPartner, |
193 |
CreateFinalPDFPermission = result.CreateFinalPDFPermission, |
194 |
NewCommentPermission = result.NewCommentPermission, |
195 |
ProjectNO = result.ProjectNO, |
196 |
UserID = result.UserID, |
197 |
isAdmin = Convert.ToBoolean(result.Mode) |
198 |
//UserID = "H2009115", |
199 |
//Mode = result.Mode |
200 |
}; |
201 |
ParameterMode = true; |
202 |
} |
203 |
else |
204 |
{ |
205 |
string[] strArg = Environment.GetCommandLineArgs(); |
206 |
if (strArg.Length > 1) |
207 |
{ |
208 |
var result = ParamDecoding(strArg[1].Replace(@"kcom://", "").Replace(@"/", "")); |
209 |
App.ViewInfo = new IKCOM.ViewInfo |
210 |
{ |
211 |
DocumentItemID = result.DocumentItemID, |
212 |
EnsembleID = result.DocumentItemID, |
213 |
//DocumentItemID = "10001", |
214 |
bPartner = result.bPartner, |
215 |
CreateFinalPDFPermission = result.CreateFinalPDFPermission, |
216 |
NewCommentPermission = result.NewCommentPermission, |
217 |
ProjectNO = result.ProjectNO, |
218 |
UserID = result.UserID, |
219 |
//UserID = "H2009115", |
220 |
//Mode = 0 , 1 , 2 |
221 |
}; |
222 |
ParameterMode = true; |
223 |
} |
224 |
else |
225 |
{ |
226 |
MessageBox.Show("문서 정보가 입력되지 않았습니다.\n프로그램이 종료됩니다.", "안내"); |
227 |
throw new ArgumentException("문서 정보가 입력되지 않았습니다."); |
228 |
} |
229 |
} |
230 |
|
231 |
//App.ViewInfo.CreateFinalPDFPermission = false; |
232 |
//App.ViewInfo.NewCommentPermission = false; |
233 |
//GetQueryStringParameters(); |
234 |
//_binding = new WSHttpBinding(); |
235 |
//_binding.Security = new WSHttpSecurity { Transport = new HttpTransportSecurity { ClientCredentialType = HttpClientCredentialType.None }, Mode = SecurityMode.Transport }; |
236 |
//_binding.MaxReceivedMessageSize = 2147483647; |
237 |
//_binding.OpenTimeout = new TimeSpan(0, 1, 0); |
238 |
//_binding.ReceiveTimeout = new TimeSpan(0, 10, 0); |
239 |
//_binding.CloseTimeout = new TimeSpan(0, 5, 0); |
240 |
//_binding.SendTimeout = new TimeSpan(0, 5, 0); |
241 |
#if BASIC_BINDING |
242 |
|
243 |
#region 기본 binding |
244 |
BasicHttpBinding basicHttpBinding = new BasicHttpBinding(BasicHttpSecurityMode.None); |
245 |
basicHttpBinding.Security = new BasicHttpSecurity { Transport = new HttpTransportSecurity { ClientCredentialType = HttpClientCredentialType.None, ProxyCredentialType = HttpProxyCredentialType.None }, Mode = BasicHttpSecurityMode.None, Message = new BasicHttpMessageSecurity { AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256, ClientCredentialType = BasicHttpMessageCredentialType.UserName } }; |
246 |
basicHttpBinding.MaxBufferSize = 2147483647; |
247 |
basicHttpBinding.MaxBufferPoolSize = 2147483647; |
248 |
basicHttpBinding.MaxReceivedMessageSize = 2147483647; |
249 |
basicHttpBinding.OpenTimeout = new TimeSpan(4, 30, 0); |
250 |
basicHttpBinding.ReceiveTimeout = new TimeSpan(4, 30, 0); |
251 |
basicHttpBinding.CloseTimeout = new TimeSpan(4, 30, 0); |
252 |
basicHttpBinding.SendTimeout = new TimeSpan(4, 30, 0); |
253 |
basicHttpBinding.TextEncoding = System.Text.Encoding.UTF8; |
254 |
basicHttpBinding.TransferMode = TransferMode.Buffered; |
255 |
basicHttpBinding.MessageEncoding = WSMessageEncoding.Text; |
256 |
basicHttpBinding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard; |
257 |
|
258 |
|
259 |
System.ServiceModel.Channels.ReliableSessionBindingElement reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement(); |
260 |
reliableSession.Ordered = true; |
261 |
reliableSession.MaxRetryCount = 3; |
262 |
basicHttpBinding.CreateBindingElements().Add(reliableSession); |
263 |
//basicHttpBinding.ProxyAddress = null; |
264 |
//basicHttpBinding.AllowCookies = false; |
265 |
//basicHttpBinding.BypassProxyOnLocal = false; |
266 |
//basicHttpBinding.UseDefaultWebProxy = false; |
267 |
//basicHttpBinding.ProxyAddress = new Uri("Http://localhost:8888"); |
268 |
|
269 |
_binding = basicHttpBinding; |
270 |
|
271 |
//System.ServiceModel.Channels.ReliableSessionBindingElement reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement(); |
272 |
//reliableSession.Ordered = true; |
273 |
|
274 |
//System.ServiceModel.Channels.HttpTransportBindingElement httpTransport = new System.ServiceModel.Channels.HttpTransportBindingElement(); |
275 |
//httpTransport.AuthenticationScheme = System.Net.AuthenticationSchemes.Anonymous; |
276 |
//httpTransport.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard; |
277 |
//System.ServiceModel.Channels.CustomBinding binding = new System.ServiceModel.Channels.CustomBinding(reliableSession, httpTransport); |
278 |
#endregion |
279 |
#elif CUSTOM_BINDING |
280 |
#region custombinding |
281 |
var customBinding = new System.ServiceModel.Channels.CustomBinding() |
282 |
{ |
283 |
OpenTimeout = new TimeSpan(0, 15, 0), |
284 |
ReceiveTimeout = new TimeSpan(0, 15, 0), |
285 |
CloseTimeout = new TimeSpan(0, 15, 0), |
286 |
SendTimeout = new TimeSpan(0, 15, 0), |
287 |
}; |
288 |
|
289 |
var messageEncoding = new WcfExtensions.ServiceModel.Channels.CompressionBindingElement(); |
290 |
messageEncoding.Level = WcfExtensions.ServiceModel.Channels.CompressionLevel.Fast; |
291 |
|
292 |
var httpTranport = new System.ServiceModel.Channels.HttpTransportBindingElement |
293 |
{ |
294 |
MaxBufferPoolSize = Int32.MaxValue, |
295 |
MaxBufferSize = Int32.MaxValue, |
296 |
MaxReceivedMessageSize = Int32.MaxValue, |
297 |
RequestInitializationTimeout = new TimeSpan(0, 10, 0), |
298 |
//UseDefaultWebProxy = false, |
299 |
//ProxyAddress = new Uri("Http://127.0.0.1:8888") |
300 |
}; |
301 |
|
302 |
|
303 |
customBinding.CreateBindingElements(); |
304 |
customBinding.Elements.Add(messageEncoding); |
305 |
customBinding.Elements.Add(httpTranport); |
306 |
|
307 |
|
308 |
_binding = customBinding; |
309 |
#endregion |
310 |
|
311 |
#else |
312 |
|
313 |
#region 기본 binding |
314 |
BasicHttpBinding basicHttpBinding = new BasicHttpBinding(BasicHttpSecurityMode.None); |
315 |
basicHttpBinding.Security = new BasicHttpSecurity { Transport = new HttpTransportSecurity { ClientCredentialType = HttpClientCredentialType.None, ProxyCredentialType = HttpProxyCredentialType.None }, Mode = BasicHttpSecurityMode.None, Message = new BasicHttpMessageSecurity { AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256, ClientCredentialType = BasicHttpMessageCredentialType.UserName } }; |
316 |
basicHttpBinding.MaxBufferSize = 2147483647; |
317 |
basicHttpBinding.MaxBufferPoolSize = 2147483647; |
318 |
basicHttpBinding.MaxReceivedMessageSize = 2147483647; |
319 |
basicHttpBinding.OpenTimeout = new TimeSpan(4, 30, 0); |
320 |
basicHttpBinding.ReceiveTimeout = new TimeSpan(4, 30, 0); |
321 |
basicHttpBinding.CloseTimeout = new TimeSpan(4, 30, 0); |
322 |
basicHttpBinding.SendTimeout = new TimeSpan(4, 30, 0); |
323 |
basicHttpBinding.TextEncoding = System.Text.Encoding.UTF8; |
324 |
basicHttpBinding.TransferMode = TransferMode.Buffered; |
325 |
basicHttpBinding.MessageEncoding = WSMessageEncoding.Text; |
326 |
basicHttpBinding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard; |
327 |
|
328 |
|
329 |
System.ServiceModel.Channels.ReliableSessionBindingElement reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement(); |
330 |
reliableSession.Ordered = true; |
331 |
reliableSession.MaxRetryCount = 3; |
332 |
basicHttpBinding.CreateBindingElements().Add(reliableSession); |
333 |
|
334 |
_binding = basicHttpBinding; |
335 |
#endregion |
336 |
#endif |
337 |
|
338 |
//Support.SetLicense(); |
339 |
|
340 |
#if DEBUG |
341 |
//sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
342 |
System.Diagnostics.Debug.WriteLine("sBaseServiceURL"); |
343 |
BaseAddress = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
344 |
#else |
345 |
BaseAddress = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
346 |
#endif |
347 |
|
348 |
if (isAuthenticate) |
349 |
{ |
350 |
App.AuthenticateToken = Authenticate(BaseAddress); |
351 |
} |
352 |
|
353 |
var UploadAddress = CommonLib.Common.GetConfigString("KCOM_kr_co_devdoftech_cloud_FileUpload", "URL", ""); |
354 |
|
355 |
if (!string.IsNullOrWhiteSpace(UploadAddress) && !string.IsNullOrWhiteSpace(BaseAddress)) |
356 |
{ |
357 |
var uploadUri = new UriBuilder(UploadAddress); |
358 |
var baseUri = new UriBuilder(BaseAddress); |
359 |
|
360 |
uploadUri.Host = baseUri.Host; |
361 |
uploadUri.Port = baseUri.Port; |
362 |
|
363 |
FileUploadUri = uploadUri.ToString(); |
364 |
} |
365 |
#if BASIC_BINDING |
366 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
367 |
#elif CUSTOM_BINDING |
368 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc/gzip", BaseAddress)); |
369 |
#else |
370 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
371 |
#endif |
372 |
|
373 |
App.FileLogger.Debug(_EndPoint.Uri); |
374 |
|
375 |
#if !DEBUG |
376 |
#endif |
377 |
//var license = new License.Validator.Valid(BaseAddress + "/License"); |
378 |
|
379 |
//license.ValidateError += License_ValidateError; |
380 |
|
381 |
//license.GetLicense("public.xml"); |
382 |
|
383 |
//if (license.Activate()) |
384 |
//{ |
385 |
|
386 |
//} |
387 |
//else |
388 |
//{ |
389 |
|
390 |
//} |
391 |
|
392 |
|
393 |
await SplashScreenAsnyc(); |
394 |
|
395 |
base.OnStartup(e); |
396 |
System.Windows.Input.Keyboard.AddPreviewKeyDownHandler(this.MainWindow, KeyDownEvent); |
397 |
|
398 |
|
399 |
//System.Windows.Input.Keyboard.AddKeyDownHandler(this.MainWindow, KeyDownEvent); |
400 |
} |
401 |
catch (Exception ex) |
402 |
{ |
403 |
Logger.sendReqLog("OnStartUp",ex.ToString() + " " + ex.InnerException?.ToString(),1); |
404 |
} |
405 |
finally |
406 |
{ |
407 |
await SplashScreenAsnyc(); |
408 |
} |
409 |
} |
410 |
private string Authenticate(string baseUri) |
411 |
{ |
412 |
string result = null; |
413 |
|
414 |
try |
415 |
{ |
416 |
Uri uri = new Uri(baseUri); |
417 |
string baseUrl = uri.Scheme + "://" + uri.Host + (uri.IsDefaultPort ? "" : ":" + uri.Port); |
418 |
|
419 |
using (System.Net.WebClient client = new System.Net.WebClient()) |
420 |
{ |
421 |
client.Headers.Add(HttpRequestHeader.Authorization, "!dsfadsfa@@~"); |
422 |
var response = client.DownloadString(baseUrl + "/Authenticate"); |
423 |
|
424 |
if (response != null) |
425 |
{ |
426 |
result = response; |
427 |
} |
428 |
} |
429 |
} |
430 |
catch (Exception) |
431 |
{ |
432 |
|
433 |
throw; |
434 |
} |
435 |
|
436 |
return result; |
437 |
} |
438 |
|
439 |
private void License_ValidateError(object sender, ValidateErrorArgs e) |
440 |
{ |
441 |
e.Received = true; |
442 |
|
443 |
Telerik.Windows.Controls.RadWindow.Alert(new Telerik.Windows.Controls.DialogParameters |
444 |
{ |
445 |
Content = "License Error : " + e.Message, |
446 |
Owner = splashScreen |
447 |
}); |
448 |
///MessageBox.Show(e.Message); |
449 |
Application.Current.Shutdown(); |
450 |
} |
451 |
|
452 |
private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) |
453 |
{ |
454 |
Logger.sendReqLog("App Error ",e.Exception.ToString() + " " + e.Exception.InnerException?.ToString(), 1); |
455 |
} |
456 |
|
457 |
private void KeyDownEvent(object sender, KeyEventArgs e) |
458 |
{ |
459 |
//if (e.Key == Key.Escape || e.Key == Key.Delete) |
460 |
//{ |
461 |
System.Diagnostics.Debug.WriteLine("app key Event"); |
462 |
Common.ViewerDataModel.Instance.SystemMain.KeyEventDownAction(sender, e); |
463 |
//} |
464 |
} |
465 |
|
466 |
private async Task<bool> SplashScreenAsnyc() |
467 |
{ |
468 |
int value = 100 / ISplashMessage.SplashMessageCnt; |
469 |
|
470 |
for (int i = 1; i < ISplashMessage.SplashMessageCnt; i++) |
471 |
{ |
472 |
await Task.Delay(3); |
473 |
await splashScreen.Dispatcher.InvokeAsync(() => splashScreen.Progress = i * value); |
474 |
} |
475 |
|
476 |
//splashScreen.Close(); |
477 |
|
478 |
return true; |
479 |
} |
480 |
|
481 |
public static void splashString(string text) |
482 |
{ |
483 |
Task.Factory.StartNew(() => |
484 |
{ |
485 |
splashScreen.Dispatcher.Invoke(() => splashScreen.SplashText = text); |
486 |
}).ConfigureAwait(false); |
487 |
} |
488 |
|
489 |
|
490 |
/// <summary> |
491 |
/// log unhandled exception |
492 |
/// </summary> |
493 |
/// <author>humkyung</author> |
494 |
/// <date>2019.05.21</date> |
495 |
/// <param name="sender"></param> |
496 |
/// <param name="e"></param> |
497 |
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) |
498 |
{ |
499 |
try |
500 |
{ |
501 |
App.FileLogger.Fatal(e.ExceptionObject as Exception); |
502 |
} |
503 |
catch (Exception ex) |
504 |
{ |
505 |
Console.WriteLine(ex.InnerException?.ToString()); |
506 |
} |
507 |
finally |
508 |
{ |
509 |
#if RELEASE |
510 |
Environment.Exit(0); |
511 |
#endif |
512 |
} |
513 |
} |
514 |
|
515 |
private void ErrorLogFileWrite(string Err) |
516 |
{ |
517 |
App.FileLogger.Debug(Err); |
518 |
} |
519 |
} |
520 |
} |