Ejemplo n.º 1
0
        private void BtnSuppliers_Click(object sender, EventArgs e)
        {
            if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminSupplier"))
            {
                AdminSupplier supp = new AdminSupplier();
                supp.Dock = DockStyle.Fill;
                AdminAdministrator.Instance.PnlContainer.Controls.Add(supp);

                supp.ShowSuppliers();
            }
            AdminAdministrator.Instance.PnlContainer.Controls["AdminSupplier"].BringToFront();
            AdminAdministrator.Instance.BackButton.Visible = true;
        }
Ejemplo n.º 2
0
 public AdminAddSupplier(AdminSupplier slist)
 {
     InitializeComponent();
     cn      = new SqlConnection(dbcon.MyConnection());
     suplist = slist;
 }