private void ShowUpdateAvailable(Update update) { Debug.Assert(update != null); // TODO: Show a notification once per day for a total of three times that opens // this dialog when clicked var updateAvailable = new UpdateAvailableView { DataContext = new UpdateAvailableViewModel(update) }; updateAvailable.ShowDialog(); }
private void HandleUpdateAvailable(UpdateAvailableMessage m) { Contract.Requires(m != null); // TODO: Show a notification once per day for a total of three times that opens // this dialog when clicked var updateAvailable = new UpdateAvailableView { DataContext = new UpdateAvailableViewModel(m.Content) }; updateAvailable.ShowDialog(); }