Beispiel #1
0
 private void PersonelEkle()
 {
     flowLayoutPanel1.Controls.Clear();
     foreach (var var in db.personel)
     {
         DrVePersonelItem item = new DrVePersonelItem(var);
         item.SelectedAksiyon += ClickAksiyon;
         item.SilEvent        += Sil;
         flowLayoutPanel1.Controls.Add(item);
     }
 }
Beispiel #2
0
 private void ClickAksiyon(object o, EventArgs e)
 {
     foreach (var var in flowLayoutPanel1.Controls)
     {
         DrVePersonelItem item = var as DrVePersonelItem;
         if (o.ToString() == item.activeTCNO)
         {
             item.Kırmızı();
         }
         else
         {
             item.Mavi();
         }
     }
 }