|
@@ -89,8 +89,7 @@ namespace comal.timesheets
|
|
|
firstLoad = false;
|
|
|
//if (GlobalVariables.EmpID == Guid.Parse("40f6ccd9-5272-4b1a-99bf-de7542205aac"))
|
|
|
// RunCustomScript();
|
|
|
- NotifyChanges();
|
|
|
- SendErrors();
|
|
|
+ NotifyChanges()
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
@@ -99,32 +98,7 @@ namespace comal.timesheets
|
|
|
NavigationPage.SetHasBackButton(this, false);
|
|
|
}
|
|
|
|
|
|
- private void SendErrors()
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- const string errorFilename = "Fatal.log";
|
|
|
- var libraryPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
|
|
|
- var errorFilePath = Path.Combine(libraryPath, errorFilename);
|
|
|
-
|
|
|
- if (!File.Exists(errorFilePath))
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- var errorText = File.ReadAllText(errorFilePath);
|
|
|
-
|
|
|
- Notification n = new Notification();
|
|
|
- n.Title = "Error log from " + GlobalVariables.EmpName;
|
|
|
- n.Description = errorText;
|
|
|
- n.Employee.ID = Guid.Parse("40f6ccd9-5272-4b1a-99bf-de7542205aac");
|
|
|
-
|
|
|
- new Client<Notification>().Save(n, "Error from mobile");
|
|
|
-
|
|
|
- File.Delete(errorFilePath);
|
|
|
- }
|
|
|
- catch { }
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
private void RunCustomScript()
|
|
|
{
|