private void MusteriGoster_Load(object sender, EventArgs e) { List<DAL.Musteriler> m = new List<DAL.Musteriler>(); bll = new BLL.BusinessLogicLayer(); m = bll.MusteriGetir(); dataGridView1.DataSource = m; }
private void Form1_Load(object sender, EventArgs e) { bll = new BLL.BusinessLogicLayer(); List <Kategori> kategori = bll.KategoriGetir(); cmbxKategori.DataSource = kategori; cmbxKategori.ValueMember = "ctId"; cmbxKategori.DisplayMember = "KategoriAdi"; bll = new BLL.BusinessLogicLayer(); List <Tedarikci> tedarik = bll.TedarikciGetir(); comboBox1.DataSource = tedarik; comboBox1.ValueMember = "tdId"; comboBox1.DisplayMember = "tedarikciAdi"; /* foreach (var item in kategori) * { * cmbxKategori.Items.Add(item.KategoriAdi); * cmbxKategori.ValueMember = item.KategoriAdi.ToString(); * cmbxKategori.DisplayMember = item.ctId.ToString() ; * * }*/ bll = new BLL.BusinessLogicLayer(); List <Urunler> urun = bll.UrunleriGetir(); comboBox2.DataSource = urun; comboBox2.ValueMember = "pId"; comboBox2.DisplayMember = "UrunAdi"; }
public void kayıtGetir() { bll = new BLL.BusinessLogicLayer(); k = bll.KategoriGetir(); dataGridView1.DataSource = k; }
private void button1_Click(object sender, EventArgs e) { bll = new BLL.BusinessLogicLayer(); int a = bll.TedarikciEkle(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text); if (a != -1) { MessageBox.Show("Tedarikci eklendi."); } else { MessageBox.Show("Kayıt Başarısız."); } }
private void buttonGiris_Click(object sender, EventArgs e) { bll = new BLL.BusinessLogicLayer(); if (bll.LoginKontrol(textBoxAdi.Text, textBoxSifre.Text) > 0) { Main main = new Main(); main.Show(); // main.StatusLogin.Text = textBoxAdi.Text; this.Visible = false; MessageBox.Show("Hoşgeldiniz"); } else { MessageBox.Show("Kullanıcı Adı veya Şifre Hatalı"); } }
private void button1_Click_1(object sender, EventArgs e) { try { bll = new BLL.BusinessLogicLayer(); int a = bll.UrunEkle(textBox1.Text, Convert.ToInt32(textBox2.Text), Convert.ToInt32(textBox3.Text), Convert.ToInt32(comboBox2.SelectedValue), Convert.ToInt32(comboBox1.SelectedValue), Convert.ToInt32(cmbxKategori.SelectedValue)); if (a != -1) { MessageBox.Show("Ürün eklendi."); } else { MessageBox.Show("Kayıt Başarısız."); } } catch (Exception) { MessageBox.Show("Boş değer eklenemez!"); } }
private void button1_Click(object sender, EventArgs e) { try { bll = new BLL.BusinessLogicLayer(); int a = bll.KategoriEkle(textBox1.Text); if (a != -1) { MessageBox.Show("Ürün eklendi."); } else { MessageBox.Show("Kayıt Başarısız."); } } catch (Exception) { MessageBox.Show("Boş değer eklenemez!"); } }
public void kayitGetir() { bll = new BLL.BusinessLogicLayer(); m = bll.MusteriGetir(); dataGridView1.DataSource = m; }
private void UrunleriGoster_Load(object sender, EventArgs e) { bll = new BLL.BusinessLogicLayer(); kayitgetir(); }
private void Form1_Load(object sender, EventArgs e) { bll = new BLL.BusinessLogicLayer(); kayitgetir(); }