private void lviAdresler_MouseDoubleClick(object sender, MouseEventArgs e) { aID = Convert.ToInt32(lviAdresler.SelectedItems[0].SubItems[0].Text); EAdres a = BLLAdres.AdresBul(aID); lblAdresAdi.Text = a.AddressName; }
private void btnSil_Click(object sender, EventArgs e) { EAdres a = BLLAdres.AdresBul(aID); string cevap = BLLAdres.Sil(a); MessageBox.Show(cevap); Doldur(); }
private void frmAdresDetay_Load(object sender, EventArgs e) { EAdres a = BLLAdres.AdresBul(BLLSiparis.SiparisBul(Form1.sID).AddressID); lblAd.Text = a.Firstname; lblSoyad.Text = a.Lastname; lblil.Text = a.City; lblilce.Text = a.Town; lblPostaKodu.Text = a.PostalCode.ToString(); lblAdres.Text = a.Address; }
private void frmAdresDuzenle_Load(object sender, EventArgs e) { a = BLLAdres.AdresBul(frmAdresListele.aID); lblKullanici.Text = BLLMusteri.MusteriBul(a.CustomerID).Username; txtAdresAdi.Text = a.AddressName; txtAliciAdi.Text = a.Firstname; txtAliciSoyadi.Text = a.Lastname; txtil.Text = a.City; txtilce.Text = a.Town; txtPostaKodu.Text = a.PostalCode.ToString(); txtAdres.Text = a.Address; }
public void Doldur() { lviSiparisler.Items.Clear(); foreach (ESiparis item in BLLSiparis.Listele()) { ListViewItem lvi = new ListViewItem(); lvi.Text = item.ID.ToString(); lvi.SubItems.Add(BLLMusteri.MusteriBul(item.CustomerID).Username); lvi.SubItems.Add(BLLAdres.AdresBul(item.AddressID).AddressName); lvi.SubItems.Add(BLLSiparis.Durum(item.Status)); lvi.SubItems.Add(item.OrderDate.ToString()); lvi.SubItems.Add(BLLSiparis.KargoKodu(item.ShippingCode)); lviSiparisler.Items.Add(lvi); } }