public async Task Update() { PendingMigrationsCount.Value = ProjectInfo.ToBeRunMigrationsCount; HasPendingMigrations.Value = ProjectInfo.ToBeRunMigrationsCount > 0; MigrationsCount.Value = ProjectInfo.Migrations.Count; ProfilesCount.Value = ProjectInfo.Profiles.Count; await RootVM.UpdateHasPendingMigrations(); }
public void Drop(ICanBeDragged draggable) { var childVM = draggable as HierarchicalBaseViewModel; if (childVM != null && !Children.Contains(childVM)) { Add(childVM); } Task.Run(async() => await RootVM.UpdateHasPendingMigrations()); }