示例#1
0
            public UpdateCompleteNotification(SquirrelUpdateManager updateManager)
            {
                Text = @"Update ready to install. Click to restart!";

                Activated = () =>
                {
                    updateManager.PrepareUpdateAsync()
                    .ContinueWith(_ => updateManager.Schedule(() => game.GracefullyExit()));
                    return(true);
                };
            }
            public UpdateCompleteNotification(SquirrelUpdateManager updateManager)
            {
                Text = @"更新已安裝, 點擊重新啟動遊戲!";

                Activated = () =>
                {
                    updateManager.PrepareUpdateAsync()
                    .ContinueWith(_ => updateManager.Schedule(() => game.GracefullyExit()));
                    return(true);
                };
            }
示例#3
0
            public UpdateCompleteNotification(SquirrelUpdateManager updateManager)
            {
                Text = @"У нас тут обнова приехала, давай перезапускай игру!";

                Activated = () =>
                {
                    updateManager.PrepareUpdateAsync()
                    .ContinueWith(_ => updateManager.Schedule(() => game.GracefullyExit()));
                    return(true);
                };
            }
 protected override Notification CreateCompletionNotification()
 {
     return(new ProgressCompletionNotification
     {
         Text = @"Update ready to install. Click to restart!",
         Activated = () =>
         {
             updateManager.PrepareUpdateAsync()
             .ContinueWith(_ => updateManager.Schedule(() => game.GracefullyExit()));
             return true;
         }
     });
 }