Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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();
 }
Beispiel #4
0
 private void listMarketInformation()
 {
     market             = new DAOMarket(userId);
     labelMarketAd.Text = market.marketAd;
 }