Exemple #1
0
        public BaseVM CreateVM(ViewType viewType)
        {
            switch (viewType)
            {
            case ViewType.Home:
                return(_HVMF.CreateViewModel());

            case ViewType.Portfolio:
                return(_PVMF.CreateViewModel());

            case ViewType.Buy:
                return(_BVM);

            default:
                throw new ArgumentException("ViewType has no valid ViewModel.", "viewType");
            }
        }
 public HomeVM CreateViewModel()
 {
     return(new HomeVM(_MVMF.CreateViewModel()));
 }