private void pictureBox1_Click(object sender, EventArgs e) { if (radioButtonUrun.Checked == true) { if (comboBoxUrunler.SelectedItem == null) { comboBoxUrunler.SelectedItem = "Armut"; } dataGridViewCiro.DataSource = DAOMarket.listSearchByUrun(comboBoxUrunler.SelectedItem.ToString()); } else if (radioButtonMusteri.Checked == true) { if (textBoxMusteri.Text == "") { MessageBox.Show("İsim gir len"); } else { dataGridViewCiro.DataSource = DAOMarket.listSearchByMusteri(textBoxMusteri.Text); } } else if (radioButtonAdet.Checked == true) { dataGridViewCiro.DataSource = DAOMarket.listSearchByUrunAdet(Convert.ToInt32(numericUpDownMin.Value), Convert.ToInt32(numericUpDownMax.Value)); } }
private void listMarketInformation() { market = new DAOMarket(userId); labelMarketAd.Text = market.marketAd; labelKar.Text = market.marketNetKazanc.ToString(); dataGridViewCiro.DataSource = market.marketCiroList; page = Convert.ToInt32(dataGridViewCiro.Rows.Count); }
private void button2_Click(object sender, EventArgs e) { DAOUrunler.updateMagazaStok(productList, adetList); DAOMarket.insertMagazaCiro(productList, adetList, priceList, userId); listAllDataTables(); labelPrice.Text = "0"; listBox1.Items.Clear(); priceList.Clear(); adetList.Clear(); productList.Clear(); }
private void listMarketInformation() { market = new DAOMarket(userId); labelMarketAd.Text = market.marketAd; }