Summary description for WordformGoDlg.
Inheritance: SIL.FieldWorks.LexText.Controls.BaseGoDlg
Esempio n. 1
0
        /// <summary>
        /// Handles the xCore message to go to a wordform.
        /// </summary>
        /// <param name="argument">The xCore Command object.</param>
        /// <returns>true</returns>
        public bool OnGotoWfiWordform(object argument)
        {
            CheckDisposed();

            using (var dlg = new WordformGoDlg())
            {
                dlg.SetDlgInfo(Cache, null, m_mediator, m_propertyTable);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    m_mediator.BroadcastMessageUntilHandled("JumpToRecord", dlg.SelectedObject.Hvo);
                }
            }
            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// Handles the xCore message to go to a reversal entry.
        /// </summary>
        /// <param name="argument">The xCore Command object.</param>
        /// <returns>true</returns>
        public bool OnGotoWfiWordform(object argument)
        {
            CheckDisposed();

            using (WordformGoDlg dlg = new WordformGoDlg())
            {
                List <IWfiWordform> filteredEntries = new List <IWfiWordform>();
                filteredEntries.Add(Wordform);
                WindowParams wp = new WindowParams();
                wp.m_btnText = MEStrings.ks_GoTo;
                wp.m_label   = MEStrings.ks_Find_;
                wp.m_title   = MEStrings.ksFindWordform;
                dlg.SetDlgInfo(m_mediator, wp, filteredEntries);                 // , false
                if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    // Can't Go to a subentry, so we have to go to its main entry.
                    FdoCache     cache       = (FdoCache)m_mediator.PropertyTable.GetValue("cache");
                    IWfiWordform selWordform = WfiWordform.CreateFromDBObject(cache, dlg.SelectedID);
                    m_mediator.BroadcastMessageUntilHandled("JumpToRecord", selWordform.Hvo);
                }
            }
            return(true);
        }
Esempio n. 3
0
		/// <summary>
		/// Handles the xCore message to go to a wordform.
		/// </summary>
		/// <param name="argument">The xCore Command object.</param>
		/// <returns>true</returns>
		public bool OnGotoWfiWordform(object argument)
		{
			CheckDisposed();

			using (var dlg = new WordformGoDlg())
			{
				var cache = (FdoCache) m_mediator.PropertyTable.GetValue("cache");
				dlg.SetDlgInfo(cache, null, m_mediator);
				if (dlg.ShowDialog() == DialogResult.OK)
					m_mediator.BroadcastMessageUntilHandled("JumpToRecord", dlg.SelectedObject.Hvo);
			}
			return true;
		}
Esempio n. 4
0
		/// <summary>
		/// Handles the xCore message to go to a reversal entry.
		/// </summary>
		/// <param name="argument">The xCore Command object.</param>
		/// <returns>true</returns>
		public bool OnGotoWfiWordform(object argument)
		{
			CheckDisposed();

			using (WordformGoDlg dlg = new WordformGoDlg())
			{
				List<IWfiWordform> filteredEntries = new List<IWfiWordform>();
				filteredEntries.Add(Wordform);
				WindowParams wp = new WindowParams();
				wp.m_btnText = MEStrings.ks_GoTo;
				wp.m_label = MEStrings.ks_Find_;
				wp.m_title = MEStrings.ksFindWordform;
				dlg.SetDlgInfo(m_mediator, wp, filteredEntries); // , false
				if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
				{
					// Can't Go to a subentry, so we have to go to its main entry.
					FdoCache cache = (FdoCache)m_mediator.PropertyTable.GetValue("cache");
					IWfiWordform selWordform = WfiWordform.CreateFromDBObject(cache, dlg.SelectedID);
					m_mediator.BroadcastMessageUntilHandled("JumpToRecord", selWordform.Hvo);
				}
			}
			return true;
		}