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

            this.Text            = String.Empty;
            this.FormBorderStyle = FormBorderStyle.None;
            this.ControlBox      = false;
            this.DoubleBuffered  = true;
            this._playBackDevice = new CoreAudioController().DefaultPlaybackDevice;
            this._allSong        = new List <string>();

            this.musicProcessBar.Enabled = false;
            setup();
            this.DoubleBuffered = true;
            this._mediaForm     = new MediaForm(this, this._playedList);
            this._pictureForm   = new PictureForm(this);

            this._videoForm      = new VideoForm();
            this._playListForm   = new PlayListForm(this);
            this._nowPlayingForm = new NowPlayingForm();
            this._mediaForm.UserChoiceChanged   += playButton_Click;
            this._nowPlayingForm.FormBorderStyle = FormBorderStyle.None;
            this._nowPlayingForm.TopLevel        = false;
            this.Dock = DockStyle.Left;
            this.mainBotPanel.Controls.Add(this._nowPlayingForm);
            _nowPlayingForm.BringToFront();
            this._nowPlayingForm.Visible = false;
            this.backwardButton.Visible  = false;
        }
Ejemplo n.º 2
0
 public SongInfoForm(MediaForm parent, int index, string dir, string songName, string title, string artist, string length)
 {
     InitializeComponent();
     this._parent         = parent;
     this._dir            = dir;
     this._index          = index;
     this.indexLabel.Text = (_index + 1).ToString();
     this.artist.Text     = artist;
     this.length.Text     = length;
     this.songName.Text   = songName;
     this.title.Text      = title;
     this.DoubleBuffered  = true;
     this._index          = index;
     this.songInfoContextMenu.Renderer        = new MyRenderer();
     this.addContextMenuStrip.Renderer        = new MyRenderer();
     this.addContextMenuStrip.ForeColor       = SystemColors.GradientActiveCaption;
     songInfoContextMenu.ShowImageMargin      = false;
     this.addContextMenuStrip.ShowImageMargin = false;
 }