Enable() public method

public Enable ( ) : void
return void
 async void CheckUpdate()
 {
     if (await Github.ShouldUpdate())
     {
         UpdateButton.Enable($"Updates are available for Apollo Studio ({(await Github.LatestRelease()).Name} - {(await Github.LatestDownload()).Size.Bytes().Humanize("#.##")}).");
     }
 }
示例#2
0
 async void CheckUpdate()
 {
     if (await Github.ShouldUpdate())
     {
         UpdateButton.Enable();
     }
 }
        async void CheckUpdate()
        {
            if (await Github.ShouldUpdate())
            {
                while (App.Windows.OfType <MessageWindow>().Where(i => !i.Completed.Task.IsCompleted).FirstOrDefault() is MessageWindow window)
                {
                    await window.Completed.Task;
                }

                Dispatcher.UIThread.Post(async() => {
                    UpdateButton.Enable($"Updates are available for Apollo Studio ({(await Github.LatestRelease()).Name} - {(await Github.LatestDownload()).Size.Bytes().Humanize("#.##")}).");
                    MinHeight = MaxHeight += 30;
                }, DispatcherPriority.MinValue);
            }
        }