public MockFormWorkUnitHistoryPresenter(MessageBoxPresenter messageBox) : base( new WorkUnitHistoryModel( new InMemoryPreferencesProvider(), new WorkUnitQueryDataContainer(), Mock.Of <IWorkUnitRepository>()), null, null, messageBox ?? new MockMessageBoxPresenter(), NullProteinService.Instance) { }
public AboutDialog(ILogger logger, MessageBoxPresenter messageBox, LocalProcessService localProcess) { Logger = logger ?? NullLogger.Instance; MessageBox = messageBox ?? NullMessageBoxPresenter.Instance; LocalProcess = localProcess ?? NullLocalProcessService.Instance; InitializeComponent(); EscapeKeyReturnsCancelDialogResult(); SetVersionLabelText(); SetBuildDateLabelText(); SetProjectSiteLinkText(); SetSupportForumLinkText(); }
private static MockFormWorkUnitHistoryPresenter CreatePresenter(MessageBoxPresenter messageBox = null) { return(new MockFormWorkUnitHistoryPresenter(messageBox)); }
internal static void StartAndNotifyError(this LocalProcessService localProcess, string fileName, string arguments, string errorMessage, ILogger logger, MessageBoxPresenter messageBox) { try { localProcess.Start(fileName, arguments); } catch (Exception ex) { logger.Error(ex.Message, ex); messageBox.ShowError(errorMessage, Core.Application.NameAndVersion); } }
public WindowsDiagnosticMessages(TrayPresenter taskbarIcon, MessageBoxPresenter messagePresenter) { _taskbarIcon = taskbarIcon; _messagePresenter = messagePresenter; }