Example #1
0
 public dynamic SayfalarTumListesi()
 {
     List<Page> P = new List<Page>();
     //P.Add(new Page { Title = "Anasayfa", Date = DateTime.Now, Image = new PageImages { ImagesId = 1, ImagesPath = "donate_LG.gif" } });
     Data D = new Data();
     P = D.ListeDonder<Page>("SELECT * FROM site.page;");
     return P;
 }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (Txt_Ad.Text.Trim() == "" && Txt_Soyad.Text.Trim() == "" && Txt_TcNo.Text.Trim() == "")
            { MessageBox.Show("HiƧ bir kriter girmediniz"); return; }

            Dictionary<string, object> Param = new Dictionary<string, object>();
            Param.Add("@NAME", Encrypt(Txt_Ad.Text.Trim().ToUpper()));
            Param.Add("@SURNAME", Encrypt(Txt_Soyad.Text.Trim().ToUpper()));

            List<Vatandas> P = new List<Vatandas>();
            Data D = new Data();
            P = D.ListeDonder<Vatandas>("SELECT * FROM data1 Where NAME = @NAME And SURNAME = @SURNAME", Param);

            P.ForEach(x =>
            {
                x.NAME = Decrtpt(x.NAME);
                x.SURNAME = Decrtpt(x.SURNAME);
                x.IDENTITY_NO = Decrtpt(x.IDENTITY_NO);
                x.M_NAME = Decrtpt(x.M_NAME);
                x.F_NAME = Decrtpt(x.F_NAME);
            });

            dataGridView1.DataSource = P;
        }
Example #3
0
 public static List<Login> LoginList()
 {
     Data D = new Data();
     var P = D.ListeDonder<Login>("Select * From Login ");
     return P;
 }