Ejemplo n.º 1
0
        public void Execute(object parameter)
        {
            var reportWindow = new MonthReportWindow();
            IReadOnlyCollection <IOption> reportOptions = MonthShiftReportViewModel.Options;
            var monthReportWindowModel = new MonthReportWindowModel(reportOptions);

            monthReportWindowModel.RefreshCommand = new GenerateShortMonthReportCommand(monthReportWindowModel);
            reportWindow.DataContext = monthReportWindowModel;
            reportWindow.ShowDialog();
        }
Ejemplo n.º 2
0
        public void Execute(object parameter)
        {
            var window = new MonthReportWindow();
            ICollection <IOption> reportOptions = null;
            var monthReportWindowModel          = new MonthReportWindowModel(reportOptions);

            monthReportWindowModel.RefreshCommand = new GenerateTestAndTunesReportCommand(monthReportWindowModel);
            window.DataContext = monthReportWindowModel;

            window.ShowDialog();
        }