Пример #1
0
            public async Task SetInputs(string[] designTimeInputs, string[] sharedDesignTimeInputs)
            {
                designTimeInputs       = designTimeInputs ?? Array.Empty <string>();
                sharedDesignTimeInputs = sharedDesignTimeInputs ?? Array.Empty <string>();
                await base.ApplyAsync(new DesignTimeInputsDelta
                {
                    AddedItems       = ImmutableArray.CreateRange <string>(designTimeInputs),
                    AddedSharedItems = ImmutableArray.CreateRange <string>(sharedDesignTimeInputs)
                });

                DeletedItems.Clear();
                DirtyItems.Clear();
                CompiledItems.Clear();
            }
Пример #2
0
 private void ClearChanges()
 {
     NewItems.Clear();
     DirtyItems.Clear();
     DeletedItems.Clear();
 }