Exemplo n.º 1
0
        private void button8_Click(object sender, EventArgs e)  //Addsongs
        {
            AddSongs addSongs = new AddSongs(true, -1);

            addSongs.StartPosition = FormStartPosition.Manual;
            addSongs.Location      = new Point(this.Location.X + panel1.Location.X, this.Location.Y + panel1.Location.Y + 32);
            addSongs.Size          = panel1.Size;
            addSongs.ShowDialog();
        }
Exemplo n.º 2
0
 private void Edit(object sender, EventArgs e)
 {
     int indexSelected = ap.Index;
     if (indexSelected != -1)
     {
         AddSongs add = new AddSongs(false, indexSelected);
         add.StartPosition = FormStartPosition.Manual;
         add.Location = new Point(this.Location.X, this.Location.Y);
         add.Size = this.Size;
         add.ShowDialog();
         Allsongs_Load(sender, e);
     }
     else MessageBox.Show("Select a song before editing");
 }