コード例 #1
0
        public MainWindowViewModel(IDialogService dialogService, int inputScheme, string typeOfChallenge = null, string agent = null)
        {
            if (Instance == null)
            {
                Instance = this;
            }

            if (methParamsInstance == null)
            {
                methParamsInstance = new MethParams();
            }

            if (dataServiceInstance == null)
            {
                dataServiceInstance = new DataService();
            }

            MethParamsWorkspace = new MethParamsViewModel();
            Workspace           = MethParamsWorkspace;

            this.typeOfChallenge = typeOfChallenge;
            this.agent           = agent;

            this.inputScheme   = inputScheme;
            this.dialogService = dialogService;
            base.DisplayName   = "MainWindow";
            iconRepository     = new IconRepository();
        }
コード例 #2
0
        public MethParamsViewModel()
        {
            if (Instance == null)
            {
                Instance = this;
            }

            NewTabVisibility           = false;
            InsertMethParamsVisibility = false;

            MakeCasualtyCritList();

            this.DisplayName = "Methodology Parameters";
        }