Esempio n. 1
0
        public void callControlPopup(string usercontrolname)
        {
            UserControl uc = null;

            if (usercontrolname == "CustomerManageUC")
            {
                uc = new CustomerManageUC();
            }
            else if (usercontrolname == "CustomerUC")
            {
                uc = new CustomerUC();
            }
            else if (usercontrolname == "ProductManageUC")
            {
                uc = new ProductManageUC();
            }
            else if (usercontrolname == "ProductUC")
            {
                uc = new ProductUC();
            }
            else if (usercontrolname == "ReportServiceUC")
            {
                uc = new ReportServiceUC();
            }
            MaskedDialog.ShowDialog(this, uc);
        }
Esempio n. 2
0
 private void CustomerMenuTile_Click(object sender, EventArgs e)
 {
     if (HelperCS.UserName != "")
     {
         CustomerUC cusUC = new CustomerUC();
         pnlMain.Controls.Clear();
         pnlMain.Controls.Add(cusUC);
     }
     else
     {
         LoginUC login = new LoginUC();
         pnlMain.Controls.Clear();
         pnlMain.Controls.Add(login);
     }
 }