Ejemplo n.º 1
0
        private void MusteriAnaForm_Load(object sender, EventArgs e)
        {
            otel = new Otel();
            OtelORM orm = new OtelORM();

            PropertyInfo[] proplar = typeof(Otel).GetProperties();
            foreach (PropertyInfo item in proplar)
            {
                OtellerAgac.Oteltable.Columns.Add(item.Name);
            }
            Aktar aktar = new Aktar();

            aktar.OtelAktar(orm.Listele(), otel);
            dataGridView1.DataSource = OtellerAgac.Oteltable;
            OtelGetir();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            otel = new Otel();
            OtelORM orm = new OtelORM();

            PropertyInfo[] proplar = typeof(Otel).GetProperties();
            OtellerAgac.Oteltable.Columns.Clear();
            OtellerAgac.Oteltable.Rows.Clear();
            foreach (PropertyInfo item in proplar)
            {
                OtellerAgac.Oteltable.Columns.Add(item.Name);
            }
            Aktar aktar = new Aktar();

            aktar.OtelAktar(orm.Listele(), otel);
            dataGridView1.DataSource = OtellerAgac.Oteltable;
            OtelGetir();
            radiopuan.Checked   = false;
            radioyildiz.Checked = false;
        }