private void coberturaVerticalToolStripMenuItem_Click(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; VerticalIntegrationReportForm frmVerticalIntegrationReport = new VerticalIntegrationReportForm(); frmVerticalIntegrationReport.Show(); } finally { this.Cursor = Cursors.Default; } }
public VerticalIntegrationReportFormController(VerticalIntegrationReportForm frmVerticalIntegration) : base(frmVerticalIntegration) { this.frmVerticalIntegration = frmVerticalIntegration; this.srvCustomer = SamsaraAppContext.Resolve <ICustomerService>(); this.srvProductLine = SamsaraAppContext.Resolve <IProductLineService>(); this.srvProductSubline = SamsaraAppContext.Resolve <IProductSublineService>(); this.srvProductFamily = SamsaraAppContext.Resolve <IProductFamilyService>(); lstLines = this.srvProductLine.GetAll() .AsParallel().OrderBy(x => x.Name).ToList(); this.InitializeFormControls(); }