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; } }
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; } }