예제 #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");
            }
        }
예제 #2
0
 public HomeVM CreateViewModel()
 {
     return(new HomeVM(_MVMF.CreateViewModel()));
 }