public FileListingController(FileListingViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRepository Repository, IUpkFileRemoteRepository RemoteRepository) { viewModel = ViewModel; menuViewModel = MenuViewModel; messenger = Messenger; mapper = Mapper; repository = Repository; remoteRepository = RemoteRepository; viewModel.Files = new ObservableCollection<FileViewEntity>(); viewModel.FilterText = String.Empty; viewModel.PropertyChanged += onViewModelPropertyChanged; menuViewModel.PropertyChanged += onMenuViewModelPropertyChanged; allFiles = new List<DomainUpkFile>(); allFileEntities = new List<FileViewEntity>(); registerMessages(); registerCommands(); }
public UpkManagerController(UpkManagerViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, ISettingsRepository SettingsRepository, IExceptionRepository ExceptionRepository, IMapper Mapper) { if (Application.Current != null) Application.Current.DispatcherUnhandledException += onCurrentDispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += onDomainUnhandledException; Dispatcher.CurrentDispatcher.UnhandledException += onCurrentDispatcherUnhandledException; TaskScheduler.UnobservedTaskException += onUnobservedTaskException; System.Windows.Forms.Application.ThreadException += onThreadException; viewModel = ViewModel; menuViewModel = MenuViewModel; messenger = Messenger; settingsRepository = SettingsRepository; exceptionRepository = ExceptionRepository; mapper = Mapper; settings = Task.Run(() => settingsRepository.LoadSettingsAsync()).Result; viewModel.Settings = mapper.Map<SettingsWindowViewEntity>(settings); registerMessages(); registerCommands(); }
public ObjectTreeController(ObjectTreeViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper) { viewModel = ViewModel; menuViewModel = MenuViewModel; viewModel.ObjectTree = new ObservableCollection<ObjectTreeViewEntity>(); messenger = Messenger; mapper = Mapper; registerMessages(); }
public PropertyController(PropertyViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper) { viewModel = ViewModel; menuViewModel = MenuViewModel; viewModel.Properties = new ObservableCollection<PropertyViewEntity>(); messenger = Messenger; mapper = Mapper; registerMessages(); registerCommands(); }
public ExportTableController(ExportTableViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper) { viewModel = ViewModel; menuViewModel = MenuViewModel; viewModel.ExportTableEntries = new ObservableCollection<ExportTableEntryViewEntity>(); exportTableEntries = new List<DomainExportTableEntry>(); messenger = Messenger; mapper = Mapper; registerMessages(); }
public HexController(HexViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IAsyncService AsyncService) { viewModel = ViewModel; menuViewModel = MenuViewModel; viewModel.Title = "No Display"; viewModel.HexData = new ObservableCollection<DomainHexData>(); messenger = Messenger; asyncService = AsyncService; registerMessages(); registerCommands(); }
public RebuildController(RebuildViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRepository Repository) { viewModel = ViewModel; menuViewModel = MenuViewModel; menuViewModel.IsCompressorIterativeFit = true; menuViewModel.IsErrorMetricPerceptual = true; menuViewModel.PropertyChanged += onMenuViewModelPropertyChanged; messenger = Messenger; mapper = Mapper; repository = Repository; registerMessages(); registerCommands(); }
public HeaderTablesController(HeaderTablesViewModel ViewModel, MainMenuViewModel MenuViewModel) { viewModel = ViewModel; MenuViewModel.PropertyChanged += onMenuViewModelChanged; }