예제 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            //dah by3ml search f all songs bs
            XmlDocument doc = new XmlDocument();

            doc.Load("AllSongs.xml");
            XmlNodeList list  = doc.GetElementsByTagName("Song");
            bool        exist = false;

            for (int i = 0; i < list.Count; i++)
            {
                XmlNodeList childs = list[i].ChildNodes;
                if (childs[0].InnerText == search_txt.Text)
                {
                    All_Songs allSongs = new All_Songs();
                    allSongs.searchname = search_txt.Text;
                    allSongs.Show();
                    exist = true;
                    break;
                }
            }
            if (!exist)
            {
                MessageBox.Show("This Song is not found !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            search_txt.Clear();
        }
예제 #2
0
        private void Panel4_Click(object sender, EventArgs e)
        {
            All_Songs s = new All_Songs();

            s.Show();
        }
예제 #3
0
        private void PictureBox3_Click(object sender, EventArgs e)
        {
            All_Songs s = new All_Songs();

            s.Show();
        }