public DocumentoNewInputForm(bool IsModal, Agente agente, DocumentoInfo doc, Form parent)
     : base(IsModal, parent)
 {
     InitializeComponent();
     _agente = agente;
     _doc    = doc;
     if (doc != null)
     {
         _entity        = Documento.Get(doc.Oid);
         _entity.Nombre = string.Empty;
         _entity.Ruta   = string.Empty;
         this.Text      = Resources.Labels.DOCUMENTO_EDIT_TITLE + " " + doc.Nombre;
     }
     else
     {
         _entity = Documento.New();//_agente.Documentos.NewItem(agente);
         //AgenteDocumento agente_documento = _entity.AgenteDocumentos.NewItem(_entity);
         //agente_documento.OidAgente = _agente.Oid;
         this.Text = Resources.Labels.DOCUMENTO_ADD_TITLE;
     }
     SetFormData();
 }
 public DocumentoNewInputForm(bool IsModal, Agente agente, DocumentoInfo doc)
     : this(true, agente, doc, null)
 {
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public DocumentoNewInputForm(Agente agente, DocumentoInfo doc)
     : this(true, agente, doc)
 {
 }