예제 #1
0
        private void SetViewModel(System.Type moduleType)
        {
            switch (moduleType.Name)
            {
                case "VerticalFlowPondViewModel":
                    ViewModel = new VerticalFlowPondViewModel(DialogCoordinator.Instance);
                    break;
                case "LimestoneBedViewModel":
                    ViewModel = new LimestoneBedViewModel(DialogCoordinator.Instance);
                    break;
                case "ManganeseRemovalBedViewModel":
                    ViewModel = new ManganeseRemovalBedViewModel(DialogCoordinator.Instance);
                    break;
                case "WetlandViewModel":
                    ViewModel = new WetlandViewModel(DialogCoordinator.Instance);
                    break;
                case "BioReactorViewModel":
                    ViewModel = new BioReactorViewModel(DialogCoordinator.Instance);
                    break;
                case "AnoxicLimestoneDrainViewModel":
                    ViewModel = new AnoxicLimestoneDrainViewModel(DialogCoordinator.Instance);
                    break;
                case "CausticSodaViewModel":
                    ViewModel = new CausticSodaViewModel(DialogCoordinator.Instance);
                    break;
                case "LimeSlurryViewModel":
                    ViewModel = new LimeSlurryViewModel(DialogCoordinator.Instance);
                    break;
                case "DryLimeViewModel":
                    ViewModel = new DryLimeViewModel(DialogCoordinator.Instance);
                    break;
                case "PumpingViewModel":
                    ViewModel = new PumpingViewModel(DialogCoordinator.Instance);
                    break;
                case "ConveyanceDitchViewModel":
                    ViewModel = new ConveyanceDitchViewModel(DialogCoordinator.Instance);
                    break;
                case "SamplingViewModel":
                    ViewModel = new SamplingViewModel(DialogCoordinator.Instance);
                    break;
                case "PondsViewModel":
                    ViewModel = new PondsViewModel(DialogCoordinator.Instance);
                    break;
                case "ClarifierViewModel":
                    ViewModel = new ClarifierViewModel(DialogCoordinator.Instance);
                    break;
                case "ReactionTankViewModel":
                    ViewModel = new ReactionTankViewModel(DialogCoordinator.Instance);
                    break;
                case "SiteDevelopmentViewModel":
                    ViewModel = new SiteDevelopmentViewModel(DialogCoordinator.Instance);
                    break;
                case "PlaceholderViewModel":
                    ViewModel = new PlaceholderViewModel();
                    break;
                default:
                    break;
            }

        }
예제 #2
0
        private void SetViewModel(System.Type moduleType)
        {
            switch (moduleType.Name)
            {
            case "PumpingViewModel":
                ViewModel = new PumpingViewModel(DialogCoordinator.Instance);
                break;

            default:
                break;
            }
        }