public void OpenNewFile(string filePath) { if (AppDialogsService.ShowYesNoQuestion("Do you want to open the newly generated file?")) { SysService.StartProcess(filePath); } }
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); } }