Beispiel #1
0
 public UpdaterProvider(IApplicationExitProvider applicationExitProvider, IFileService fileService, IDirectoryService directoryService, IWebClientService webClientService, IPathService pathService, IAssemblyService assemblyService, IProcessStarterService processStarterService, IGuidGeneratorService guidGeneratorService, IIsCurrentVersionProvider isCurrentVersionProvider, IGlobalLogService globalLogService)
 {
     this._applicationExitProvider  = applicationExitProvider;
     this._fileService              = fileService;
     this._directoryService         = directoryService;
     this._webClientService         = webClientService;
     this._pathService              = pathService;
     this._assemblyService          = assemblyService;
     this._processStarterService    = processStarterService;
     this._guidGeneratorService     = guidGeneratorService;
     this._isCurrentVersionProvider = isCurrentVersionProvider;
     this._globalLogService         = globalLogService;
 }
Beispiel #2
0
        public MainViewModel(IMessageBoxService servMsgBox, IFileManagerDialogService servFileManager,
            IProcessStarterService servProcess, IPrinterService servImpr)
        {
            ////if (IsInDesignMode)
            ////{
            ////    // Code runs in Blend --> create design time data.
            ////}
            ////else
            ////{
            ////    // Code runs "for real"
            ////}

            
            ArchivoActual = new Archivo();            
            ListaMensajesCompilacion = new ObservableCollection<MensajeCompilacion>();

            
            CommandNew = new RelayCommand(New);
            CommandOpen = new RelayCommand(Open);
            CommandSave = new RelayCommand(Save);
            CommandSaveAs = new RelayCommand(SaveAs);
            CommandPrint = new RelayCommand(Print);
            CommandExit = new RelayCommand(Exit);


            CommandCompilar = new RelayCommand(Compilar);
            CommandEjecutar = new RelayCommand(Ejecutar);

            CommandAbrirManual = new RelayCommand(AbrirManual);
            CommandAboutUs = new RelayCommand(AboutUs);


            servicioMessageBox = servMsgBox;
            servicioFileManager = servFileManager;
            servicioImpresion = servImpr;
            servicioProcesos = servProcess;

            compilador = new Compilador();
        }