Пример #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;
            }
        }
Пример #2
0
        private void cmdOpenResp_Click(object sender, EventArgs e)
        {
            SurveyQuestion currentQ = (SurveyQuestion)bs.Current;

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

            frmRespOptions = new ResponseOptionUsage("RespOptions", currentQ.RespName);

            frmRespOptions.Show();
        }