private void текстToolStripMenuItem_Click(object sender, EventArgs e) { string adress = ((ListView)((TabControl)tabControl1.SelectedTab.Controls[0]).SelectedTab.Controls[0]).GetItemAt(parametrs.lyrics_point.X, parametrs.lyrics_point.Y).SubItems[6].Text; string name = ((ListView)((TabControl)tabControl1.SelectedTab.Controls[0]).SelectedTab.Controls[0]).GetItemAt(parametrs.lyrics_point.X, parametrs.lyrics_point.Y).SubItems[1].Text; name += " - " + ((ListView)((TabControl)tabControl1.SelectedTab.Controls[0]).SelectedTab.Controls[0]).GetItemAt(parametrs.lyrics_point.X, parametrs.lyrics_point.Y).SubItems[2].Text; XmlDocument res = new XmlDocument(); res.Load(String.Format("https://api.vkontakte.ru/method/audio.getLyrics.xml?access_token={0}&lyrics_id={1}", parametrs.access, adress)); XmlNodeList xnl = res.GetElementsByTagName("text"); Form_Text ft = new Form_Text(xnl[0].InnerText, name); ft.Show(); }
private void текстToolStripMenuItem_Click(object sender, EventArgs e) { string adress = ((ListView)((TabControl)tabControl1.SelectedTab.Controls[0]).SelectedTab.Controls[0]).GetItemAt(parametrs.lyrics_point.X, parametrs.lyrics_point.Y).SubItems[6].Text; string name = ((ListView)((TabControl)tabControl1.SelectedTab.Controls[0]).SelectedTab.Controls[0]).GetItemAt(parametrs.lyrics_point.X, parametrs.lyrics_point.Y).SubItems[1].Text; name +=" - " + ((ListView)((TabControl)tabControl1.SelectedTab.Controls[0]).SelectedTab.Controls[0]).GetItemAt(parametrs.lyrics_point.X, parametrs.lyrics_point.Y).SubItems[2].Text; XmlDocument res = new XmlDocument(); res.Load(String.Format("https://api.vkontakte.ru/method/audio.getLyrics.xml?access_token={0}&lyrics_id={1}", parametrs.access,adress)); XmlNodeList xnl = res.GetElementsByTagName("text"); Form_Text ft = new Form_Text(xnl[0].InnerText,name); ft.Show(); }