This is a pane which shows the title and Description of the current record.
Наследование: SIL.FieldWorks.Common.RootSites.RootSiteControl, IInterlinearTabControl, IStyleSheet
        /// <summary>
        /// Override method to get rid of up to two controls.
        /// </summary>
        protected override void AddPaneBar()
        {
            base.AddPaneBar();

            if (m_informationBar != null)
            {
                Controls.Remove(m_informationBar);
                m_informationBar.Dispose();
                m_informationBar = null;
            }

            if (TitleContentsPane != null)
            {
                Controls.Remove(TitleContentsPane);
                TitleContentsPane.Dispose();
                TitleContentsPane = null;
            }
        }
Пример #2
0
		private void MakeTitleContentsPane()
		{
			m_tcPane = new TitleContentsPane();
			m_tcPane.Dock = System.Windows.Forms.DockStyle.Top;
			// 55 holds two lines plus borders; should really compute from contents.
			m_tcPane.Height = 55; // tentative estimate usually correct.
			m_tcPane.StyleSheet = m_styleSheet;
		}
Пример #3
0
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			//Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************");
			// Must not be run more than once.
			if (IsDisposed)
				return;

			if( disposing )
			{
				SuspendLayout();	// don't want do trigger OnLayout() when removing controls!
				DestroyTitleContentsPane();
				if (m_tabCtrl != null)
					m_tabCtrl.SelectedIndexChanged -= new System.EventHandler( m_tabCtrl_SelectedIndexChanged);
				DisposeInterlinDocPanes();
				DisposeIfParentNull(m_panelInterlin);
				DisposeIfParentNull(m_rtPane);
				DisposeIfParentNull(m_infoPane);

				if(components != null)
				{
					components.Dispose();
				}
				// LT-5702
				// The Find / Replace dlg can currently only exist in this view, so
				// remove it when the view changes.  This will have to be expanded
				// when the dlg can search and operate on more than one view in Flex
				// as it does in TE.
				if (FwApp.App != null)
					FwApp.App.RemoveFindReplaceDialog();
			}

			m_tcPane = null;
			m_infoPane = null;
			m_rtPane = null;
			m_constChartPane = null;
			ClearInterlinDocPaneVariables();
			m_panelInterlin = null;
			m_panelTagging = null;
			m_panelPrintView = null;
			m_bookmark = null;

			base.Dispose( disposing );
		}
Пример #4
0
		private void DestroyTitleContentsPane()
		{
			if (m_tcPane != null)
			{
				Controls.Remove(m_tcPane);
				m_tcPane.Dispose();
				m_tcPane = null;
			}
		}