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