Switch to Actions instead of events to pass actions between Presenters and Views

This commit is contained in:
Anton Kasyanov
2016-06-08 22:33:38 +03:00
parent c596857fbc
commit 25ab51bdbe
7 changed files with 66 additions and 56 deletions

View File

@@ -40,13 +40,13 @@ namespace EveOPreview.UI
void RemoveThumbnails(IList<IThumbnailDescriptionView> thumbnails);
void RefreshZoomSettings();
event Action ApplicationExitRequested;
event Action FormActivated;
event Action FormMinimized;
event Action<ViewCloseRequest> FormCloseRequested;
event Action ApplicationSettingsChanged;
event Action ThumbnailsSizeChanged;
event Action<IntPtr> ThumbnailStateChanged;
event Action ForumUrlLinkActivated;
Action ApplicationExitRequested { get; set; }
Action FormActivated { get; set; }
Action FormMinimized { get; set; }
Action<ViewCloseRequest> FormCloseRequested { get; set; }
Action ApplicationSettingsChanged { get; set; }
Action ThumbnailsSizeChanged { get; set; }
Action<IntPtr> ThumbnailStateChanged { get; set; }
Action ForumUrlLinkActivated { get; set; }
}
}