private void bunifuThinButton21_Click(object sender, EventArgs e) { FrmReportView frm = new FrmReportView(); List <ProductsSelectedSell> productsSelected = _productsSelectedSellController.ListALLAsNoTracking(); if (productsSelected.Count > 0) { if (table != null) { frm.PrintInvoiceComanda(table.Mesa, productsSelected, txtTotGeral.Text); // frm.ShowDialog(); } else { frm.PrintInvoiceComanda("", productsSelected, txtTotGeral.Text); // frm.ShowDialog(); } } else { MessageBox.Show("Não tem nenhum elemento na lista"); } }