Пример #1
0
    /// <summary>
    /// Indica che il componente Comped è installato e funzionante
    /// </summary>
    /// <returns>bool</returns>
    public bool IsAlive()
    {
        try
        {
            CompEdLib p7m = new CompEdLib();
            p7m.Dispose();

            return true;
        }
        catch (Exception e)
        {
            return false;
        }
    }
Пример #2
0
    public DocumentContent TimeStampDocument(string FileName, DocumentContent Content, bool IsInfoCamereFormat)
    {
        DocumentContent newTimeStampDocument = null;

        CompEdLib p7m = null;
        try
        {
            p7m = new CompEdLib();
            newTimeStampDocument = new DocumentContent(p7m.P7xTimeStampDocument(IsInfoCamereFormat, FileName, Content.Blob));
        }
        catch (Exception e)
        {
            throw e;
        }
        finally
        {
            if (p7m != null)
                p7m.Dispose();
        }
        return newTimeStampDocument;
    }