Getting Started Creating a Custom Header

  1. You will first need to create a new project in Visual Studio. Once your project is created you need to add three references to your project: CartellaDomainModels.dll, CartellaBase.dll, and Common.dll.

  2. Now you may create a new class for your header. You must add the Cartella.Models, Cartella.Support, and Cartella.Interfaces namespaces to your project.

  3. Your class must derive from SettingsHeaderWrapperBase.

    CopyC#
    using Cartella.Models;
    using Cartella.Support;
    using Cartella.Interfaces;
    
        public class CustomHeader : SettingsHeadersWrapperBase
        {
            public override string PropertyName
            {
                get { throw new NotImplementedException(); }
            }
    
            public override SettingsTypes SettingType
            {
                get { throw new NotImplementedException(); }
            }
        }

    This is the minimum properties needed to compile. The base class contains a lot of default functionality to make programming easier, but it is unlikely that the default functionality will create the header you want. It is strongly recommened that you override the base functionality.