using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Windows.Forms;
using MercatorApi;
namespace Billing
{
public class Customizer : MercatorUi.ICustomizers.IBillingEngineCreated
{
public void BillingEngineCreated(MercatorUi.Engine.Gescom.BillingEngine BillingEngine)
{
if ((MercatorUi.Globals.CurrentUser["libre1"].ToString() == "ReadOnly") && !BillingEngine.IsNew && !BillingEngine.ReadOnly)
BillingEngine.ReadOnly = true;
}
}
}