Example #1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            TermekAlkatreszFelvitel dialogus = new TermekAlkatreszFelvitel(Int32.Parse(CBTermekek.SelectedValue.ToString()));

            dialogus.ShowDialog();
            PopulateDataGridView();
        }
Example #2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            //   public TermekAlkatreszFelvitel(int Id, int TermekId, int AlkatreszId, int Darab)

            int a = dgvEmployee.CurrentCell.RowIndex;

            if (a != -1)
            {
                int Id          = Int32.Parse(dgvEmployee[0, a].Value.ToString());
                int AlkatreszId = Int32.Parse(dgvEmployee[1, a].Value.ToString());
                int Darab       = Int32.Parse(dgvEmployee[4, a].Value.ToString());

                TermekAlkatreszFelvitel dialogus = new TermekAlkatreszFelvitel(Id, Int32.Parse(CBTermekek.SelectedValue.ToString()), AlkatreszId, Darab);
                dialogus.ShowDialog();
            }

            PopulateDataGridView();
        }