Beispiel #1
0
        private void txtIspisBona_Click(object sender, EventArgs e)
        {
            frmBarCode bc = new frmBarCode();

            bc.broj_dokumenta = dgv.CurrentRow.Cells["Broj fakture_van"].FormattedValue.ToString();
            bc.ukupno         = Convert.ToDouble(dgv.CurrentRow.Cells["Ukupno"].FormattedValue.ToString());
            bc.ShowDialog();
        }
Beispiel #2
0
        private void simpleButton11_Click_1(object sender, EventArgs e)
        {
            _rawinput.KeyPressed -= OnKeyPressed;

            using (var frm = new frmBarCode())
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    var mat = _db.Materials.FirstOrDefault(w => w.BarCode == frm.BarCodeEdit.Text);

                    if (mat != null)
                    {
                        AddMat(mat.MatId);
                    }
                }
            }

            _rawinput.KeyPressed += OnKeyPressed;
        }