Exemplo n.º 1
0
 public static void Show(string ToastMessage, int ShowTime = 1500)
 {
     Task.Factory.StartNew(new Action(() =>
     {
         ToastViewModel asdf = new ToastViewModel(ToastMessage, ShowTime);
     }), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.FromCurrentSynchronizationContext());
 }
        private void _checkForUpdates(object parameter)
        {
            GithubUpdater Updater = new GithubUpdater();

            if (Updater.LaunchUpdater() == 0)
            {
                ToastViewModel.Show("No update available");
            }
        }