Example #1
0
        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);
        }
Example #2
0
        private void LstBoxOyuncular_DoubleClick(object sender, EventArgs e)
        {
            Oyuncu o = (Oyuncu)LstBoxOyuncular.SelectedItem;

            MessageBox.Show(o.BilgiVer());
        }