private static void StartupCreateWindows() { if (View.InvokeRequired) { throw new Exception("You must be on the MainUI Thread!"); } var sw = new Stopwatch("StartupCreateWindows"); _mOutputViewModel = new OutputViewModel(); _mFilterViewModel = new FilterViewModel(); _mSourceInfoViewModel = new SourceInfoViewModel(); _mDocumentHelperViewModel = new DocumentHelperViewModel(); _mDocumentMapViewModel = new DocumentMapViewModel(); _mEventPerformanceTestViewModel = new EventPerformanceTestViewModel(); _mPropertyViewModel = new PropertyViewModel(); _mNetworkMapingViewModel = new NetworkMapingViewModel(); _mNetworkMapViewModel = new NetworkMapViewModel(); _mSockDrawerViewModel = new SockDrawerViewModel(); _mHideOptionViewModel = new HideOptionViewModel(); _mCategoryViewModel = new CategoryViewModel(); _mValueViewModel = new ValueViewModel(); _mEventViewModel = new EventViewModel(); _mPatternViewModel = new PatternViewModel(); _mRecipeReportViewModel = new RecipeReportViewModel(); _mNetworkReportViewModel = new NetworkReportViewModel(); _mResearchViewModel = new ResearchViewModel(); _mPerformanceViewModel = new PerformanceViewModel(); DocumentViewModels.Add(_mFilterViewModel); DocumentViewModels.Add(_mSourceInfoViewModel); DocumentViewModels.Add(_mDocumentHelperViewModel); DocumentViewModels.Add(_mDocumentMapViewModel); DocumentViewModels.Add(_mEventPerformanceTestViewModel); DocumentViewModels.Add(_mPropertyViewModel); DocumentViewModels.Add(_mNetworkMapingViewModel); DocumentViewModels.Add(_mNetworkMapViewModel); // Other Views are supporing views OtherViewModels.Add(_mOutputViewModel); OtherViewModels.Add(_mSockDrawerViewModel); OtherViewModels.Add(_mCategoryViewModel); OtherViewModels.Add(_mHideOptionViewModel); OtherViewModels.Add(_mValueViewModel); OtherViewModels.Add(_mEventViewModel); OtherViewModels.Add(_mPatternViewModel); OtherViewModels.Add(_mRecipeReportViewModel); OtherViewModels.Add(_mNetworkReportViewModel); OtherViewModels.Add(_mResearchViewModel); OtherViewModels.Add(_mPerformanceViewModel); AllViewModels.AddRange(DocumentViewModels); AllViewModels.AddRange(OtherViewModels); }
protected override Task InitializeAsync() { // Create view models BinaryToolViewModels.AddRange(new UtilityViewModel[] { new UtilityViewModel(new Utility_Archives()), new UtilityViewModel(new Utility_Serializers()), new UtilityViewModel(new Utility_Converters()), new UtilityViewModel(new Utility_Decoders()), }); OtherViewModels.AddRange(new UtilityViewModel[] { new UtilityViewModel(new Utility_SyncTextureInfo()), new UtilityViewModel(new Utility_R1PasswordGenerator()), }); ExternalToolViewModels.AddRange(new UtilityViewModel[] { new UtilityViewModel(new Utility_Ray1Editor()), }); return(Task.CompletedTask); }
public void Dispose() { BinaryToolViewModels.DisposeAll(); OtherViewModels.DisposeAll(); ExternalToolViewModels.DisposeAll(); }