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 window = new MonthReportWindow(); ICollection <IOption> reportOptions = null; var monthReportWindowModel = new MonthReportWindowModel(reportOptions); monthReportWindowModel.RefreshCommand = new GenerateTestAndTunesReportCommand(monthReportWindowModel); window.DataContext = monthReportWindowModel; window.ShowDialog(); }