Inheritance: ObservableObject
Exemplo n.º 1
0
    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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 5
0
    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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 8
0
    public HeaderTablesController(HeaderTablesViewModel ViewModel, MainMenuViewModel MenuViewModel) {
      viewModel = ViewModel;

      MenuViewModel.PropertyChanged += onMenuViewModelChanged;
    }