private void label_bul(object sender, EventArgs e) { Label lbl = sender as Label; Form1.filmId = int.Parse(lbl.Tag.ToString()); Form film = new film(); film.Text = film_id.ToString(); film.Show(); }
private void buton_bul(object sender, EventArgs e) { // baglanti.Open(); Button btn = sender as Button; Form1.filmId = int.Parse(btn.Tag.ToString()); Form film = new film(); film.Show(); }
private void buton_bul2(object sender, EventArgs e) { Button btn = sender as Button; Filmid = int.Parse(btn.Tag.ToString()); Form1.filmId = Filmid; Form film = new film(); film.Show(); }
private void buton_bul(object sender, EventArgs e) { // baglanti.Open(); Button btn = sender as Button; /* string hky = "Select * from Filmler where id=@id"; * SqlCommand kmtHky = new SqlCommand(hky, baglanti); * kmtHky.Parameters.AddWithValue("@id", int.Parse(btn.Tag.ToString())); * * SqlDataReader dr = kmtHky.ExecuteReader(); * if(dr.Read()) * MessageBox.Show((dr["hikaye"]).ToString()); * baglanti.Close();*/ filmId = int.Parse(btn.Tag.ToString()); Form film = new film(); film.Show(); }