public void Populate(IList <CustomSection> customSections, CustomSection originalTextSection, IList <CustomSection> defaultCustomSections,
                             CustomSection defaultOriginalTextSection, Context context)
        {
            _isPopulate = true;

            this._customSections             = customSections;
            this._originalTextSection        = originalTextSection;
            this._defaultCustomSections      = defaultCustomSections;
            this._defaultOriginalTextSection = defaultOriginalTextSection;
            this._context = context;

            customSections[(int)CustomEntryEditor.EditorMode.Text].DecodeText();
            defaultCustomSections[(int)CustomEntryEditor.EditorMode.Text].DecodeText();
            originalTextSection.DecodeText();
            defaultOriginalTextSection.DecodeText();

            _customSectionIndex = 0;
            _editorMode         = CustomEntryEditor.EditorMode.Data;

            cmb_Section.Items.Clear();
            cmb_Section.Items.Add("Text");
            cmb_Section.Items.Add("Data");
            cmb_Section.SelectedIndex = _customSectionIndex;
            SetSectionIndex(_customSectionIndex);

            _isPopulate = false;
        }
 private void SetSectionIndex(int index)
 {
     _customSectionIndex = index;
     _editorMode         = (CustomEntryEditor.EditorMode)(index);
     PopulateSection();
 }