Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Bul ff = new Bul();

            ff.ShowDialog();
            txtb_barkod.Text = ff.a;
            datagride_urun_ekle(txtb_barkod.Text, lbl_carpim);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Bul ff = new Bul();

            ff.ShowDialog();
            barkodTextBox.Text = ff.a;
            urunverilerini_al();
        }
Exemple #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Bul ff = new Bul();

            ff.ShowDialog();
            txtb_Barkod.Text = ff.a;
            barkod           = txtb_Barkod.Text;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Bul ff = new Bul();

            ff.ShowDialog();
            MesajEkranı msg = new MesajEkranı();

            if (ff.bul == true)
            {
                msg.mesaj_goster_olumlu("ÜRÜN BULUNDU", 400);
                barkodTextBox.Text = ff.a;
                Urun_Ara_Ekle();
            }
        }
Exemple #5
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)

        {
            if (e.ColumnIndex == 1 && dataGridView1.Rows.Count > e.RowIndex && e.RowIndex > -1)
            {
                Bul ff = new Bul();
                ff.ShowDialog();
                MesajEkranı mesaj = new MesajEkranı();
                if (ff.a == null)
                {
                    mesaj.mesaj_goster_olumsuz("Ürün Bulunamadı", 700);
                }
                else
                {
                    dataGridView1.Rows[e.RowIndex].Cells[0].Value = ff.a;
                    mesaj.mesaj_goster_olumlu("Ürün Bulundu", 700);
                    for (int i = 0; i < row.Length; i++)
                    {
                        if (dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString() == row[i][0].ToString())
                        {
                            vs.Clear();
                            dataGridView1.Rows[e.RowIndex].Cells[1].Value = row[i][1].ToString();
                            vs.Add(row[i][8].ToString());
                            vs.Add(row[i][6].ToString());
                            DataGridViewComboBoxCell boxCell = dataGridView1.Rows[e.RowIndex].Cells[2] as DataGridViewComboBoxCell;
                            boxCell.Items.Add(row[i][8].ToString());
                            boxCell.Items.Add(row[i][6].ToString());
                            boxCell.Value = row[i][8].ToString();
                            dataGridView1.Rows[e.RowIndex].Cells[7].Value = row[i][6].ToString();
                        }
                    }
                }
            }
            if (e.ColumnIndex == 6 && e.RowIndex > 0 && e.RowIndex < dataGridView1.Rows.Count - 1)
            {
                dataGridView1.Rows.RemoveAt(e.RowIndex);
            }
        }