Example #1
0
        private void btnAddStock_Click(object sender, EventArgs e)
        {
            FrmAddStock frm = new FrmAddStock();

            this.Hide();
            frm.ShowDialog();
            this.Visible = true;
        }
        private void btnBuyStock_Click(object sender, EventArgs e)
        {
            FrmAddStock frm = new FrmAddStock();

            this.Hide();
            frm.ShowDialog();
            this.Visible             = true;
            dto                      = bll.Select();
            dto.Products             = dto.Products.Where(x => x.StockAmount <= 10).ToList();
            dataGridView1.DataSource = dto.Products;
        }