Пример #1
0
        private void buttonFilter_Click(object sender, EventArgs e)
        {
            SongFilter     S = new SongFilter();
            FormSongFilter SongFormFilter = new FormSongFilter(S);
            DialogResult   Result         = SongFormFilter.ShowDialog();

            if (Result == DialogResult.OK)
            {
                _MediaCollection.FilterBy(S);
                listBox1.DataSource = _MediaCollection.FilteredMediaList;
            }
            else
            {
                listBox1.DataSource = _MediaCollection.MediaList;
            }
        }
Пример #2
0
        private void buttonFilter_Click(object sender, EventArgs e)
        {
            SongFilter S = new SongFilter();
            FormSongFilter SongFormFilter = new FormSongFilter(S);
            DialogResult Result = SongFormFilter.ShowDialog();

            if (Result == DialogResult.OK)
            {
                _MediaCollection.FilterBy(S);
                listBox1.DataSource = _MediaCollection.FilteredMediaList;
            }
            else
            {
                listBox1.DataSource = _MediaCollection.MediaList;
            }
        }