Ejemplo n.º 1
0
        public void ClientsViewCachedLogClick()
        {
            // Check for SelectedSlot, and get out if not found
            if (_gridModel.SelectedSlot == null)
            {
                return;
            }

            string logFilePath = Path.Combine(_prefs.Get <string>(Preference.CacheDirectory), _gridModel.SelectedSlot.Settings.CachedFahLogFileName());

            if (File.Exists(logFilePath))
            {
                HandleProcessStartResult(_processStarter.ShowCachedLogFile(logFilePath));
            }
            else
            {
                string message = String.Format(CultureInfo.CurrentCulture, "The log file for '{0}' does not exist.",
                                               _gridModel.SelectedSlot.Settings.Name);
                _messageBoxView.ShowInformation(_view, message, _view.Text);
            }
        }