Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }