// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // The Error Service Interface // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Services.Interfaces { using System; using System.Windows; /// /// The Interface to the Error Service. /// public interface IErrorService { /// /// Show an Exception Error Window /// /// /// The message. /// /// /// The solution. /// /// /// The details. /// void ShowError(string message, string solution, string details); /// /// Show an Exception Error Window /// /// /// The message. /// /// /// The solution. /// /// /// The exception. /// void ShowError(string message, string solution, Exception exception); /// /// Show a Message Box. /// It is good practice to use this, so that if we ever introduce unit testing, the message boxes won't cause issues. /// /// /// The message. /// /// /// The header. /// /// /// The buttons. /// /// /// The image. /// /// /// The MessageBoxResult Object /// MessageBoxResult ShowMessageBox(string message, string header, MessageBoxButton buttons, MessageBoxImage image); } }