Exemplo n.º 1
0
        // TODO test
        private void SearchWordings()
        {
            string searchTerm = Clipboard.GetText();

            if (frmWordings == null)
            {
                frmWordings = new WordingUsage();
            }

            if (frmWordings.FilterWordings(Clipboard.GetText()) > 0)
            {
                frmWordings.Visible = true;
                return;
            }

            if (frmRespOptions == null)
            {
                frmRespOptions = new ResponseOptionUsage();
            }

            if (frmRespOptions.FilterWordings(Clipboard.GetText()) > 0)
            {
                return;
            }

            if (frmNonRespOptions == null)
            {
                frmNonRespOptions = new NonResponseOptionUsage();
            }

            if (frmNonRespOptions.FilterWordings(Clipboard.GetText()) > 0)
            {
                return;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Opens the wording form popup to a specific wording.
        /// </summary>
        /// <param name="field"></param>
        /// <param name="number"></param>
        public void OpenWordingForm(string field, int number)
        {
            if (frmWordings != null)
            {
                frmWordings.Close();
            }

            frmWordings = new WordingUsage(field, number);

            frmWordings.Show();
        }