System.Collections.Generic.HashSet.Add(WizardPageViewModel)

Here are the examples of the csharp api System.Collections.Generic.HashSet.Add(WizardPageViewModel) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : WizardViewModel.cs
with MIT License
from specsolutions

private void MoveToPage(int newPageIndex, int activePageIndex = -1)
        {
            if (activePageIndex < 0)
                activePageIndex = ActivePageIndex;
            if (newPageIndex < 0 || newPageIndex >= Pages.Count)
                return;
            Pages[activePageIndex].IsActive = false;
            var newPage = Pages[newPageIndex];
            newPage.IsActive = true;
            VisitedPages.Add(newPage);

            OnPropertyChanged(nameof(ActivePage));
            OnPropertyChanged(nameof(ActivePageIndex));
            OnPropertyChanged(nameof(IsOnLastPage));
        }