Example #1
0
        private void bValidValues_Click(object sender, System.EventArgs e)
        {
            int cur = lbParameters.SelectedIndex;

            if (cur < 0)
            {
                return;
            }

            ReportParm rp = lbParameters.Items[cur] as ReportParm;

            if (rp == null)
            {
                return;
            }

            using (DialogValidValues dvv = new DialogValidValues(rp.ValidValues))
            {
                if (dvv.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                rp.ValidValues = dvv.ValidValues;
                this.tbParmValidValues.Text = rp.ValidValuesDisplay;
            }
        }
        private void bValidValues_Click(object sender, System.EventArgs e)
        {
            int cur = lbParameters.SelectedIndex;
            if (cur < 0)
                return;

            ReportParm rp = lbParameters.Items[cur] as ReportParm;
            if (rp == null)
                return;

            using (DialogValidValues dvv = new DialogValidValues(rp.ValidValues))
            {
                if (dvv.ShowDialog() != DialogResult.OK)
                    return;
                rp.ValidValues = dvv.ValidValues;
                this.tbParmValidValues.Text = rp.ValidValuesDisplay;
            }
        }