Beispiel #1
0
        private void btnManageSales_Click(object sender, EventArgs e)
        {
            frmControlHost host = new frmControlHost();

            host.WindowState   = FormWindowState.Normal;
            host.StartPosition = FormStartPosition.CenterParent;
            //host.BackColor = Color.LightBlue;
            ucManageSale control = new ucManageSale();

            control.Dock = DockStyle.Fill;
            host.Controls.Add(control);

            host.ShowDialog();
        }
Beispiel #2
0
        private void radButton5_Click(object sender, EventArgs e)
        {
            HideControls(_controls);

            Suspend();

            ucManageSale salelist = new ucManageSale();

            salelist.Dock = DockStyle.Fill;

            scContainer.Panel2.Controls.Add(salelist);
            AddControls(salelist);

            Resume();
        }