Example #1
0
 private void btnSelectionItem_Click(object sender, EventArgs e)
 {
     try
     {
         pnlContext.Controls.Clear();
         SelectionItemCtl objSelectedItem = new SelectionItemCtl(this);
         objSelectedItem.Parent = this;
         pnlContext.Controls.Add(objSelectedItem);
         objSelectedItem.Dock = DockStyle.Fill;
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #2
0
 private void proMnuSelectionItems_Click(object sender, EventArgs e)
 {
     try
     {
         pnlContext.Controls.Clear();
         SelectionItemCtl objSelectedItem = new SelectionItemCtl(this);
         objSelectedItem.Parent = this;
         pnlContext.Controls.Add(objSelectedItem);
         objSelectedItem.Dock = DockStyle.Fill;
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }