private void btnMembersTransitReport_Click(object sender, RoutedEventArgs e) { var form = new PassageReport { Owner = this, WindowStartupLocation = WindowStartupLocation.CenterScreen, Type = PassageReportType.MembersReport }; form.Closed += Form_Closed; form.Show(); //(new PassageReport { Owner = this, WindowStartupLocation=WindowStartupLocation.CenterScreen, Type = PassageReportType.MembersReport }).Show(); }
private void btnIrregularTransitReport_Click(object sender, RoutedEventArgs e) { var form = new PassageReport { Owner = this, WindowStartupLocation = WindowStartupLocation.CenterScreen, Type = PassageReportType.SingleSessionsReport }; form.Closed += Form_Closed; form.Show(); //(new TransitReport { Type = Domain.Enums.MemberSelectionCategory.IrregularTransit, Owner = this }).Show(); }