Esempio 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;
            }
        }
Esempio n. 2
0
        private void cmdOpenNonResp_Click(object sender, EventArgs e)
        {
            SurveyQuestion currentQ = (SurveyQuestion)bs.Current;

            if (frmNonRespOptions != null)
            {
                frmNonRespOptions.Close();
            }

            frmNonRespOptions = new NonResponseOptionUsage("NRCodes", currentQ.NRName);

            frmNonRespOptions.Show();
        }