示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Album_Admin newForm = new Album_Admin(this.numeArtist, this.numeAlbumVechi);

            newForm.FormClosed += new FormClosedEventHandler(closeForm);
            this.Hide();
            newForm.Show();
            newForm.Left = this.Left;
            newForm.Top  = this.Top;
        }
示例#2
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string numeAlbum = Convert.ToString(listBox1.SelectedItem);

            // numeAlbum = connect.ReadNameFromAlbum("Select name from artists where id=" + Convert.ToString(index));

            if (numeAlbum != "")
            {
                Album_Admin newForm = new Album_Admin(this.numeArtist, numeAlbum);
                newForm.FormClosed += new FormClosedEventHandler(closeForm);
                this.Hide();
                newForm.Show();
                newForm.Left = this.Left;
                newForm.Top  = this.Top;
            }
        }