Exemple #1
0
        // Display new form Product_Seller
        private void sellerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;

            Product_Seller f = new Product_Seller();

            f.MdiParent = this;
            f.Show();
        }
Exemple #2
0
        private void product_info_bttn_Click(object sender, EventArgs e)
        {
            if (OpenAuctionLV.SelectedItems.Count == 1)
            {
                ListViewItem item = OpenAuctionLV.SelectedItems[0];

                int productCode = Convert.ToInt32(item.SubItems[1].Text);

                Product_Seller f = new Product_Seller(productCode);
                f.Show();
            }

            else
            {
                MessageBox.Show("You need to select an auction to view its product info.", "Error alert",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }