private void btnRights_Click(object sender, EventArgs e)
 {
     FrmRights frm = new FrmRights();
     FrmMaterials objfrmMaterial = new FrmMaterials();
     frm.frmName = this.Name;
     frm.frmRightsControl = objfrmMaterial;
     frm.Show();
 }
 private void btnRights_Click(object sender, EventArgs e)
 {
     FrmRights frm = new FrmRights();
     FrmDesignations objfrmDesignation = new FrmDesignations();
     frm.frmName = this.Name;
     frm.frmRightsControl = objfrmDesignation;
     frm.Show();
 }