예제 #1
0
        private void btnSale_Click(object sender, EventArgs e)
        {
            pnlHighlight.Height = btnSale.Height;
            pnlHighlight.Top    = btnSale.Top;
            this.pnForm.Controls.Clear();

            UC_SaleDetails uc = new UC_SaleDetails();

            uc.AutoScroll = true;
            this.pnForm.Controls.Add(uc);
        }
        private void BtnDetails_Click(object sender, EventArgs e)
        {
            UC_SaleDetails ucs = new UC_SaleDetails();

            AddControlsToPanel(ucs);
        }