using System.Drawing;
using MercatorUi;
using MercatorApi;
using MercatorExtensions;
using System.ComponentModel;
using System.Data.SqlClient;
using System.Text;
namespace Billing
{
public class Customizer : MercatorUi.ICustomizers.IBillingEngineCreated
{
public void BillingEngineCreated(MercatorUi.Engine.Gescom.BillingEngine billingEngine)
{
if (!((billingEngine.PIEDS["sign_img"] == DBNull.Value) || (((byte[])billingEngine.PIEDS["sign_img"]).Length == 0)))
{
MercatorUi.Dialogs.Stop("Ce document contient une signature. Il ne peut plus être modifié !");
billingEngine.ReadOnly = true;
}
}
}
}