Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            _MediaCollection    = new MediaCollection();
            listBox1.DataSource = _MediaCollection.MediaList;

            if (_MediaCollection.MediaList.Count == 0)
            {
                buttonEdit.Enabled   = false;
                buttonDelete.Enabled = false;
            }
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            _MediaCollection = new MediaCollection();
            listBox1.DataSource = _MediaCollection.MediaList;

            if (_MediaCollection.MediaList.Count == 0)
            {
                buttonEdit.Enabled = false;
                buttonDelete.Enabled = false;
            }
        }