예제 #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();
        }
예제 #2
0
        private void btnNewCusromer_Click(object sender, EventArgs e)
        {
            if (!Helper.IsAdmin())
            {
                return;
            }

            frmControlHost host = new frmControlHost();
            ucCardInfo     info = new ucCardInfo();

            info.Dock = DockStyle.Fill;

            host.Controls.Add(info);

            host.ShowDialog();
        }
예제 #3
0
        private void btnNewProduct_Click(object sender, EventArgs e)
        {
            if (!Helper.HasWriteAccess(ApplicationFroms.ucNewProduct))
            {
                return;
            }

            frmControlHost host    = new frmControlHost();
            ucNewProduct   product = new ucNewProduct();

            this.TopMost = false;
            this.Close();

            product.Dock = DockStyle.Fill;

            host.Controls.Add(product);

            host.ShowDialog();
        }