Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public void Drop(ICanBeDragged draggable)
        {
            var childVM = draggable as HierarchicalBaseViewModel;

            if (childVM != null && !Children.Contains(childVM))
            {
                Add(childVM);
            }

            Task.Run(async() => await RootVM.UpdateHasPendingMigrations());
        }