Deze voorbeeld-customizer toont u hoe u de labels kan wijzigen van de vrije velden in de gebruikersinstellingen.
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using MercatorApi;
using MercatorExtensions;
using MercatorUi;
using System.Windows.Forms;
// <CompileWithRoslyn />
namespace Param
{
public class Customizer : MercatorUi.ICustomizers.IFormLoadCustomizer
{
public void FormLoadCustomize(Form form)
{
if (form is MercatorUi.Forms.Param.ParamUsersForm paramUsersForm)
{
paramUsersForm.LabelFree1.Text = "Perso 1 :";
paramUsersForm.LabelFree2.Text = "Mon libellé perso 2 :";
paramUsersForm.LabelFree2.Left -= 60;
paramUsersForm.LabelFree2.Width += 60;
}
}
}
}