Пример #1
0
        public override void OnApplicationStart(HmeApplicationStartArgs e)
        {
            _musicList                   = new MusicList(27);
            _musicList.Bounds            = new System.Drawing.Rectangle(64, 40, 640 - 64 * 2, 480 - 150);
            _musicList.SelectionChanged += new EventHandler <EventArgs>(_musicList_SelectionChanged);
            e.Application.Root.Children.Add(_musicList);
            _track        = new Track();
            _track.Bounds = new System.Drawing.Rectangle(64, _musicList.Bounds.Y + _musicList.Bounds.Height, 640 - 64 * 2, 60);
            e.Application.Root.Children.Add(_track);

            _musicList.AddRange(_fileNames);
            _musicList.Focus();

            _application                       = e.Application;
            _application.KeyPress             += new EventHandler <KeyEventArgs>(application_KeyPress);
            _application.ResourceStateChanged += new EventHandler <ResourceStateChangedArgs>(application_ResourceStateChanged);
        }