private void utbJerarquia_Click(object sender, System.EventArgs e)
 {
     //forms.frmSeleccionJerarquia form = new mz.erp.ui.forms.frmSeleccionJerarquia(_rootKey, _nodeKey, _nodeKeyPath);
     //Cristian Tarea 000069 20110907
     forms.frmSeleccionJerarquia form = new mz.erp.ui.forms.frmSeleccionJerarquia(_key, _rootKey, _itemsJerarquias, true, _allowMultipleSelect);
     //Fin Cristian
     form.ShowDialog();
     if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         /*
          * _nodeKey = form.NodeKey;
          * _nodeKeyPath = form.NodeKeyPath;
          * _descriptionKey =  form.NodeDescripcion;
          */
         _itemsJerarquias = form.ItemsJerarquias;
         // matias
         if (_itemsJerarquias.Count > 1)
         {
             this.mzCEJerarquias.Visible     = false;
             this.txtNombreJerarquia.Visible = true;
         }
         else
         {
             this.mzCEJerarquias.Visible     = true;
             this.txtNombreJerarquia.Visible = false;
         }
         // -- matias
         _nodeChecked    = true;
         _descriptionKey = string.Empty;
         foreach (ItemJerarquia it in _itemsJerarquias)
         {
             if (_descriptionKey.Equals(string.Empty))
             {
                 _descriptionKey = it.NodeDescription;
             }
             else
             {
                 _descriptionKey = _descriptionKey + "; " + it.NodeDescription;
             }
         }
         txtNombreJerarquia.Text = _descriptionKey;
         mzCEJerarquias.Value    = form.NodeKey;
         toolTip.SetToolTip(mzCEJerarquias, _descriptionKey);
         toolTip.SetToolTip(utbJerarquia, _descriptionKey);
         this.chkJerarquia.Checked = true;
         if (OnSelected != null)
         {
             OnSelected(this, new System.EventArgs());
         }
     }
 }
 private void utbJerarquia_Click(object sender, System.EventArgs e)
 {
     forms.frmSeleccionJerarquia form = new mz.erp.ui.forms.frmSeleccionJerarquia(_rootKey, _nodeKey);
     form.ShowDialog();
     if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         _nodeKey = form.NodeKey;
         txtNombreJerarquia.Text   = form.NodeDescripcion;
         this.chkJerarquia.Checked = true;
         if (OnSelected != null)
         {
             OnSelected(this, new System.EventArgs());
         }
     }
 }