Inheritance: SIL.FieldWorks.Common.Framework.DetailControls.ButtonLauncher
Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="parent"></param>
        public override void Install(DataTree parent)
        {
            CheckDisposed();

            base.Install(parent);

            MsaInflectionFeatureListDlgLauncher ctrl = (MsaInflectionFeatureListDlgLauncher)Control;

            m_flid = MsaInflectionFeatureListDlgLauncherSlice.GetFlid(m_configurationNode, m_obj);
            if (m_flid != 0)
            {
                m_fs = MsaInflectionFeatureListDlgLauncherSlice.GetFeatureStructureFromMSA(m_obj, m_flid);
            }
            else
            {
                m_fs   = m_obj as IFsFeatStruc;
                m_flid = FsFeatStrucTags.kflidFeatureSpecs;
            }

            ctrl.Initialize(m_propertyTable.GetValue <LcmCache>("cache"),
                            m_fs,
                            m_flid,
                            "Name",
                            ContainingDataTree.PersistenceProvder,
                            Mediator,
                            m_propertyTable,
                            "Name",
                            XmlUtils.GetOptionalAttributeValue(m_configurationNode, "ws", "analysis"));     // TODO: Get better default 'best ws'.
        }
Esempio n. 2
0
 /// <summary>
 /// This method, called once we have a cache and object, is our first chance to
 /// actually create the embedded control.
 /// </summary>
 public override void FinishInit()
 {
     CheckDisposed();
     Control = new MsaInflectionFeatureListDlgLauncher();
 }
		/// <summary>
		/// This method, called once we have a cache and object, is our first chance to
		/// actually create the embedded control.
		/// </summary>
		public override void FinishInit()
		{
			CheckDisposed();
			Control = new MsaInflectionFeatureListDlgLauncher();
		}