コード例 #1
0
        private void PopulateSources()
        {
            cbVarSource.Items.Clear();

            foreach (ReportSQLSource source in ExistingSources.Sorted().Where(s => s.Name != CurrentQuery.Name))
            {
                // Add the source to the combobox
                cbVarSource.Items.Add(source);
            }
        }