public interface IOpenFileViewService
{
OpenFileResponse OpenFile(string filter, int filterIndex, bool multiselect);
}
public interface ISaveFileViewService
{
SaveFileResponse SaveFile(string filter, int filterIndex, string defaultExt);
}
public interface IShowErrorViewService
{
void ShowError(string title, string message);
void ShowError(string title, string message, Exception error);
}
public interface IShowIndicatorViewService
{
IDisposable ShowIndicator();
IDisposable ShowIndicator(TimeSpan timeout);
}
public interface IShowMessageViewService
{
IDisposable ShowMessage(string message, bool isCancellable);
IDisposable ShowMessage(string title, string message, bool isCancellable);
IDisposable ShowMessage(string message, bool isCancellable, Action<bool?> confirmationCallback);
IDisposable ShowMessage(string title, string message, bool isCancellable, Action<bool?> confirmationCallback);
}
public interface IShowStatusViewService
{
IDisposable ShowStatus(string status);
IDisposable ShowStatus(string status, TimeSpan timeout);
IDisposable ShowStatus(string status, Action acknowledgementCallback);
IDisposable ShowStatus(string status, TimeSpan timeout, Action acknowledgementCallback);
}
Well, if anyone has any opinion or suggestion on any of the above please let me know, as I'm about to bake these in.