Ejemplo n.º 1
0
        private void btnCategory_Click(object sender, EventArgs e)
        {
            frmCategoryList frmCategory = new frmCategoryList();

            frmCategory.TopLevel = false;
            MainPanel.Controls.Add(frmCategory);
            frmCategory.BringToFront();
            frmCategory.loadRecords();
            frmCategory.Show();
        }
Ejemplo n.º 2
0
        private void btnCategory_Click(object sender, EventArgs e)
        {
            btnCategory.Enabled = false;
            ReferenceFrm.Dispose();
            ReferenceBtn.Enabled = true;
            frmCategoryList frmCategory = new frmCategoryList();

            ReferenceFrm         = frmCategory;
            ReferenceBtn         = btnCategory;
            frmCategory.TopLevel = false;
            MainPanel.Controls.Add(frmCategory);
            frmCategory.BringToFront();
            frmCategory.loadRecords();
            frmCategory.Show();
        }
Ejemplo n.º 3
0
 public frmCategory(frmCategoryList frm)
 {
     InitializeComponent();
     frmList = frm;
     cn      = new SqlConnection(dbcon.MyConnection());
 }