Example #1
0
        private void Ekle_Click(object sender, EventArgs e)
        {
            Personel person1 = new Personel();

            person1.Adi     = textBox1.Text;
            person1.Soyadi  = textBox2.Text;
            person1.SicilNo = textBox3.Text;
            person1.Maas    = numericUpDown1.Value;

            personelform.PersonelEkle(person1);

            textBox1.Text        = textBox2.Text = textBox3.Text = "";
            numericUpDown1.Value = 0;
            textBox1.Focus();
        }
Example #2
0
 public void PersonelEkle(Personel personel)
 {
     persons[sayac] = personel;
     listBox1.Items.Add(personel.Adi + " " + personel.Soyadi);
     sayac++;
 }