Esempio n. 1
0
 private void btnCategory_Click(object sender, EventArgs e)
 {
     try
     {
         pnlContext.Controls.Clear();
         CategoryDetailsCtl objCatDetails = new CategoryDetailsCtl(this);
         objCatDetails.Parent = this;
         pnlContext.Controls.Add(objCatDetails);
         objCatDetails.Dock = DockStyle.Fill;
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Esempio n. 2
0
 private void categoryTsButton_Click(object sender, EventArgs e)
 {
     try
     {
         pnlContext.Controls.Clear();
         CategoryDetailsCtl objCatDetails = new CategoryDetailsCtl(this);
         objCatDetails.Parent = this;
         pnlContext.Controls.Add(objCatDetails);
         objCatDetails.Dock = DockStyle.Fill;
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }