Пример #1
0
 private void tsMnuUsers_Click(object sender, EventArgs e)
 {
     try
     {
         pnlContext.Controls.Clear();
         UserDetailsCtl objUsers = new UserDetailsCtl(this);
         objUsers.Parent = this;
         pnlContext.Controls.Add(objUsers);
         objUsers.Dock = DockStyle.Fill;
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Пример #2
0
 private void usersTsButton_Click(object sender, EventArgs e)
 {
     try
     {
         pnlContext.Controls.Clear();
         UserDetailsCtl objUsers = new UserDetailsCtl(this);
         objUsers.Parent = this;
         pnlContext.Controls.Add(objUsers);
         objUsers.Dock = DockStyle.Fill;
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }