コード例 #1
0
        private void bDefaultValues_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 (DialogListOfStrings dlos = new DialogListOfStrings(rp.DefaultValue))
            {
                dlos.Text = "Default Values";
                if (dlos.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                rp.DefaultValue = dlos.ListOfStrings;
                this.tbParmDefaultValue.Text = rp.DefaultValueDisplay;
            }
        }
コード例 #2
0
		private void bDefaultValues_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 (DialogListOfStrings dlos = new DialogListOfStrings(rp.DefaultValue))
            {
                dlos.Text = Strings.ReportParameterCtl_bDefaultValues_Click_Default_Values;
                if (dlos.ShowDialog() != DialogResult.OK)
                    return;
                rp.DefaultValue = dlos.ListOfStrings;
                this.tbParmDefaultValue.Text = rp.DefaultValueDisplay;
            }
		}