Beispiel #1
0
        public void OpenStorageLocation(string storagePath)
        {
            const string openErrorMessage = "Can not open storage file location";

            try
            {
                if (!File.Exists(storagePath))
                {
                    AppDialogsService.ShowError(openErrorMessage);
                    return;
                }

                SysService.OpenFileLocation(storagePath);
            }
            catch (Exception exc)
            {
                LogException(openErrorMessage, exc);
            }
        }
Beispiel #2
0
        public void OpenLogs()
        {
            const string openErrorMessage = "Can not open logs file location";

            try
            {
                if (!File.Exists(LoggerService.LogFilePath))
                {
                    AppDialogsService.ShowError(openErrorMessage);
                    return;
                }

                SysService.StartProcess(LoggerService.LogFilePath);
            }
            catch (Exception exc)
            {
                LogException(openErrorMessage, exc);
            }
        }