public override void Initialize(object sender, SectionInitializeEventArgs e) { base.Initialize(sender, e); System.Threading.Tasks.Task.Factory.StartNew(async delegate { IsVisible = await _tes.IsGiteaRepoAsync(); }); }
public override async void Refresh() { IsVisible = await _tes.IsGiteaRepoAsync(); var view = (this.View as TextBlock); if (view != null) { view.Text = (_tes.Project != null && !string.IsNullOrEmpty(_tes.Project.Description)) ? _tes.Project.Description : Strings.Description; } base.Refresh(); }
public override async void Invalidate() { IsVisible = false; IsVisible = await _tes.IsGiteaRepoAsync() && _tes.Project != null; }
public override async void Refresh() { IsVisible = await _tes.IsGiteaRepoAsync(); base.Refresh(); }