public FinishViewModel(TranslationMemoriesViewModel translationMemoriesViewModel, PackageDetailsViewModel packageDetailsViewModel)
 {
     _translationMemoriesViewModel = translationMemoriesViewModel;
     _packageDetailsViewModel      = packageDetailsViewModel;
     _package = _translationMemoriesViewModel.GetPackageModel();
     Refresh();
 }
        public StarTransitMainWindowViewModel(
            PackageDetailsViewModel packageDetailsViewModel,
            PackageDetails packageDetails,
            TranslationMemories translationMemories,
            TranslationMemoriesViewModel translationMemoriesViewModel,
            FinishViewModel finishViewModel,
            IMessageBoxService messageBoxService)
        {
            _messageBoxService            = messageBoxService;
            _packageDetailsViewModel      = packageDetailsViewModel;
            _packageDetails               = packageDetails;
            _translationMemories          = translationMemories;
            _translationMemoriesViewModel = translationMemoriesViewModel;
            CanExecuteBack     = false;
            CanExecuteCreate   = false;
            CanExecuteNext     = true;
            _isDetailsSelected = true;
            _isTmSelected      = false;
            _isFinishSelected  = false;
            _finishViewModel   = finishViewModel;
            Color = "#FFB69476";
            var helpers = new Shared.Utils.Helpers();

            _projectService = new ProjectService(DefaultFileTypeManager.CreateInstance(true), helpers);
        }
Example #3
0
 public StarTransitMainWindowViewModel(PackageDetailsViewModel packageDetailsViewModel, PackageDetails packageDetails, TranslationMemories translationMemories, TranslationMemoriesViewModel translationMeloriesMemoriesViewModel,
                                       FinishViewModel finishViewModel, MetroWindow window)
 {
     _packageDetailsViewModel      = packageDetailsViewModel;
     _packageDetails               = packageDetails;
     _translationMemories          = translationMemories;
     _translationMemoriesViewModel = translationMeloriesMemoriesViewModel;
     CanExecuteBack     = false;
     CanExecuteCreate   = false;
     CanExecuteNext     = true;
     _isDetailsSelected = true;
     _isTmSelected      = false;
     _isFinishSelected  = false;
     _finishViewModel   = finishViewModel;
     _projectService    = new ProjectService();
     Color   = "#FFB69476";
     _window = window;
 }