예제 #1
0
		private void butPreview_Click(object sender,EventArgs e) {
			ResultText=textMain.Text;
			FormAutoNotePromptPreview FormP=new FormAutoNotePromptPreview();
			FormP.ResultText=ResultText;
			FormP.ShowDialog();
			if(FormP.DialogResult==DialogResult.OK) {
				ResultText=FormP.ResultText;
				DialogResult=DialogResult.OK;
			}
		}
예제 #2
0
        private void butPreview_Click(object sender, EventArgs e)
        {
            ResultText = textMain.Text;
            FormAutoNotePromptPreview FormP = new FormAutoNotePromptPreview();

            FormP.ResultText = ResultText;
            FormP.ShowDialog();
            if (FormP.DialogResult == DialogResult.OK)
            {
                ResultText   = FormP.ResultText;
                DialogResult = DialogResult.OK;
            }
        }
		private void butPreview_Click(object sender,EventArgs e) {
			if(listMain.SelectedIndex==-1) {
				MsgBox.Show(this,"One response must be selected");
				return;
			}
			ResultText=listMain.SelectedItem.ToString();
			FormAutoNotePromptPreview FormP=new FormAutoNotePromptPreview();
			FormP.ResultText=ResultText;
			FormP.ShowDialog();
			if(FormP.DialogResult==DialogResult.OK) {
				ResultText=FormP.ResultText;
				DialogResult=DialogResult.OK;
			}
		}
예제 #4
0
		private void butPreview_Click(object sender,EventArgs e) {
			ResultText="";
			for(int i=0;i<listMain.CheckedIndices.Count;i++) {
				if(i>0) {
					ResultText+=", ";
				}
				ResultText+=listMain.CheckedItems[i].ToString();
			}
			FormAutoNotePromptPreview FormP=new FormAutoNotePromptPreview();
			FormP.ResultText=ResultText;
			FormP.ShowDialog();
			if(FormP.DialogResult==DialogResult.OK) {
				ResultText=FormP.ResultText;
				DialogResult=DialogResult.OK;
			}
		}
예제 #5
0
        private void butPreview_Click(object sender, EventArgs e)
        {
            if (listMain.SelectedIndex == -1)
            {
                MsgBox.Show(this, "One response must be selected");
                return;
            }
            ResultText = listMain.SelectedItem.ToString();
            FormAutoNotePromptPreview FormP = new FormAutoNotePromptPreview();

            FormP.ResultText = ResultText;
            FormP.ShowDialog();
            if (FormP.DialogResult == DialogResult.OK)
            {
                ResultText   = FormP.ResultText;
                DialogResult = DialogResult.OK;
            }
        }
        private void butPreview_Click(object sender, EventArgs e)
        {
            ResultText = "";
            for (int i = 0; i < listMain.CheckedIndices.Count; i++)
            {
                if (i > 0)
                {
                    ResultText += ", ";
                }
                ResultText += listMain.CheckedItems[i].ToString();
            }
            FormAutoNotePromptPreview FormP = new FormAutoNotePromptPreview();

            FormP.ResultText = ResultText;
            FormP.ShowDialog();
            if (FormP.DialogResult == DialogResult.OK)
            {
                ResultText   = FormP.ResultText;
                DialogResult = DialogResult.OK;
            }
        }