Enable() public method

public Enable ( ) : void
return void
コード例 #1
0
 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();
     }
 }
コード例 #3
0
        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);
            }
        }