private void BtnEkle_Click(object sender, EventArgs e) { string adi = TxtAd.Text; byte formaNo = Convert.ToByte(NumNo.Value); string takimi = TxtTakim.Text; Oyuncu o = new Oyuncu(adi, formaNo, takimi); LstBoxOyuncular.Items.Add(o); }
private void LstBoxOyuncular_DoubleClick(object sender, EventArgs e) { Oyuncu o = (Oyuncu)LstBoxOyuncular.SelectedItem; MessageBox.Show(o.BilgiVer()); }