private void listBox1_Click(object sender, EventArgs e) { customdialog dialoguin = new customdialog(); dialoguin.Location = this.Location; dialoguin.url = lista3[lista2.ToList().IndexOf(listBox1.Text)]; dialoguin.imagen = lista3[lista2.ToList().IndexOf(listBox1.Text)].Split('=')[1]; dialoguin.ShowDialog(); }
private void metroListView1_MouseClick(object sender, MouseEventArgs e) { int indice = metroListView1.SelectedItems[0].ImageIndex; customdialog dialogo = new customdialog(); dialogo.Location = this.Location; string[] cadenita2 = vireos[indice].url.Split('='); dialogo.imagen = cadenita2[1]; dialogo.url = vireos[indice].url; dialogo.ShowDialog(); }
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (activated == true) { activated = false; customdialog dialogo = new customdialog(); dialogo.Location = this.Location; dialogo.imagen = imgurl; dialogo.url = url; dialogo.ShowDialog(); } }