Esempio n. 1
0
        public RegularConsumerViewModel(IReportRepository reportrepo, WpfReportingService reportingService, Dictionary <string, dynamic> reportResources)
        {
            this.reprepo          = reportrepo;
            this.reportingService = reportingService;
            this.reportResources  = reportResources;
            GenerateCommand       = new DelegateCommand(ExecuteGenerate, CanExecuteGenerate);

            ReportMessage = getDefaultMessage();

            OutputFolder = "%Desktop%\\Reports";
        }
Esempio n. 2
0
        public DefaultDesignerViewModel(IReportRepository rrep, WpfReportingService reportingService)
        {
            this.reprepo           = rrep;
            this.reportingService  = reportingService;
            GenerateCommand        = new DelegateCommand(ExecuteGenerate);
            RunCommand             = new DelegateCommand(ExecuteRun);
            SaveCommand            = new DelegateCommand(ExecuteSave, CanExecuteSave);
            ExportTemplateCommand  = new DelegateCommand <string>(ExecuteExportTemplate);
            LoadTemplateCommand    = new DelegateCommand <string>(ExecuteLoadTemplate);
            DefaultTemplateCommand = new DelegateCommand(ExecuteDefaultTemplate);
            OutputEntries          = new ObservableCollection <OutputEntry>();

            LanguagesList = new List <string>()
            {
                "IronPython", "IronRuby"
            };                                                               // TODO: get them from manifest or something

            TemplateMessage = "No template selected";
            ValidText       = true;
        }