Пример #1
0
        void Ornek()
        {
            Interface.SQLWorks[] works = new Interface.SQLWorks[2];
            student  = new Inheritance.Person.Student();
            works[0] = student;
            Inheritance.Person.Worker worker = new Inheritance.Person.Worker();
            works[0] = worker;

            for (int i = 0; i < works.Length; i++)
            {
                works[i].Save();
            }
        }
Пример #2
0
        private void btn_studen_ekle_Click(object sender, EventArgs e)
        {
            student = new Inheritance.Person.Student(txt_Student_Ad.Text, txt_Student_soyAd.Text, dt_Student_dogum_Tar.Value, txt_StStudent_cinsiyet.Text, txt_Student_okul.Text);

            st_listele();
        }