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(); }
public void Execute(object parameter) { var reportWindow = new Reports.MonthReportWindow(); ICollection <IOption> reportOptions = null; var monthReportWindowModel = new MonthReportWindowModel(reportOptions); monthReportWindowModel.RefreshCommand = new GenerateShiftsReportCommand(monthReportWindowModel); reportWindow.DataContext = monthReportWindowModel; reportWindow.ShowDialog(); }
public GenerateShortMonthReportCommand(MonthReportWindowModel monthReportWindowModel) : base(monthReportWindowModel) { }