Esempio n. 1
0
        /// ------------------------------------------------------------------------------------
        public void Initialize()
        {
            pnlConsonants.SuspendLayout();
            pnlVowels.SuspendLayout();
            tpgAFeatures.SuspendLayout();
            tpgBFeatures.SuspendLayout();

            tabPatternBlding.Font = FontHelper.UIFont;
            tpgClasses.Tag        = lvClasses.Items;

            lvClasses.Load();
            lvClasses.LoadSettings(Name);
            lvClasses.ItemDrag         += ClassListItemDragHandler;
            lvClasses.KeyPress         += ClassListKeyPressHandler;
            lvClasses.MouseDoubleClick += ClassListDoubleClickHandler;

            SetupVowConPickers(true);
            SetupOtherPicker();

            _lvArticulatoryFeatures = InitializeFeatureList(new DescriptiveFeatureListView {
                CheckBoxes = false
            });
            _lvBinaryFeatures = InitializeFeatureList(new DistinctiveFeatureListView {
                CheckBoxes = true
            });
            tpgAFeatures.Controls.Add(_lvArticulatoryFeatures);
            tpgBFeatures.Controls.Add(_lvBinaryFeatures);

            tpgBFeatures.ResumeLayout(false);
            tpgAFeatures.ResumeLayout(false);
            pnlVowels.ResumeLayout(false);
            pnlConsonants.ResumeLayout(false);
        }
Esempio n. 2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Creates and initializes a feature list resultView and returns it.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        private FeatureListViewBase InitializeFeatureList(FeatureListViewBase flv)
        {
            flv.Load();
            flv.Dock      = DockStyle.Fill;
            flv.LabelEdit = false;
            flv.AllowDoubleClickToChangeCheckState = false;
            flv.EmphasizeCheckedItems = false;
            flv.ItemDrag          += FeatureListsItemDragHandler;
            flv.KeyPress          += FeatureListsKeyPressHandler;
            flv.CustomDoubleClick += FeatureListDoubleClickHandler;

            return(flv);
        }
Esempio n. 3
0
        /// ------------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();

                if (m_lvAFeatures != null && !m_lvAFeatures.IsDisposed)
                {
                    m_lvAFeatures.Dispose();
                    m_lvAFeatures = null;
                }

                if (m_lvBFeatures != null && !m_lvBFeatures.IsDisposed)
                {
                    m_lvBFeatures.Dispose();
                    m_lvBFeatures = null;
                }
            }

            base.Dispose(disposing);
        }
Esempio n. 4
0
        /// ------------------------------------------------------------------------------------
        private void SetupFeatureLists()
        {
            if (App.DesignMode)
            {
                return;
            }

            m_lvAFeatures      = new DescriptiveFeatureListView();
            m_lvAFeatures.Dock = DockStyle.Fill;
            m_lvAFeatures.Load();
            tpgAFeatures.Controls.Add(m_lvAFeatures);
            m_lvAFeatures.BringToFront();

            m_lvAFeatures.FeatureChanged += HandleArticulatoryFeatureCheckChanged;

            m_lvBFeatures      = new DistinctiveFeatureListView();
            m_lvBFeatures.Dock = DockStyle.Fill;
            m_lvBFeatures.Load();
            tpgBFeatures.Controls.Add(m_lvBFeatures);
            m_lvBFeatures.BringToFront();

            m_lvAFeatures.BorderStyle = BorderStyle.None;
            m_lvBFeatures.BorderStyle = BorderStyle.None;
        }