private void BtnPrintSummary_Click(object sender, EventArgs e)
        {
            var dialog = new FrmAuctionReport(Items);

            dialog.ShowDialog();
            dialog.Close();
            DialogResult = DialogResult.None;
        }
예제 #2
0
        private void BtnAuctionReport_Click(object sender, EventArgs e)
        {
            var showPieces    = GetAllInventory();
            var auctionPieces = showPieces.FindAll(p => p.Auctioned);

            if (auctionPieces.Count == 0)
            {
                MessageBox.Show("Nothing has been indicated as going to auction yet.", "Nothing to Do",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
                return;
            }
            var report = new FrmAuctionReport(auctionPieces);

            report.ShowDialog();
        }