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); } }
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); } }