示例#1
0
        private void MusteriSec(object sender, EventArgs e)
        {
            ControlMusteriButton button = (ControlMusteriButton)sender;

            btnMusteri.MusteriId  = button.MusteriId;
            btnMusteri.Adi        = button.Adi;
            btnMusteri.Soyadi     = button.Soyadi;
            btnMusteri.MusteriTip = button.MusteriTip;
            btnMusteri.Load();
            navigationKategori.SelectedPage = pageKategoriUrunler;
        }
示例#2
0
 void MusteriButtonOlustur()
 {
     foreach (var musteri in worker.MusteriService.GetList(null))
     {
         ControlMusteriButton button = new ControlMusteriButton
         {
             Name       = musteri.Id.ToString(),
             Text       = $"{musteri.Adi} {musteri.Soyadi}",
             Adi        = musteri.Adi,
             Soyadi     = musteri.Soyadi,
             MusteriId  = musteri.Id,
             MusteriTip = musteri.MusteriTip,
             Height     = 150,
             Width      = 150
         };
         button.Load();
         button.Click += MusteriSec;
         flowMusteri.Controls.Add(button);
     }
 }