Inheritance: ObservableObject
    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();
    }
示例#2
0
    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();
    }
示例#3
0
    public ObjectTreeController(ObjectTreeViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper) {
          viewModel =     ViewModel;
      menuViewModel = MenuViewModel;

      viewModel.ObjectTree = new ObservableCollection<ObjectTreeViewEntity>();

      messenger = Messenger;
      mapper    = Mapper;

      registerMessages();
    }
示例#4
0
    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();
    }
示例#6
0
    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();
    }
示例#7
0
    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;
    }