Exemplo n.º 1
0
        private void ToolStripButton1_Click(object sender, EventArgs e)
        {
            frmIngrediencia frmI = new frmIngrediencia(idJedlo);

            frmI.StartPosition = FormStartPosition.CenterScreen;
            frmI.ShowDialog();
            frmI.Dispose();
            NaplnDb();
        }
Exemplo n.º 2
0
        private void DgvIngrediencie_DoubleClick(object sender, EventArgs e)
        {
            if (dovolEditovat && dgvIngrediencie.SelectedRows.Count > 0)
            {
                DataGridViewRow riadok = dgvIngrediencie.SelectedRows[0];

                frmIngrediencia frmI = new frmIngrediencia(idJedlo, (int)riadok.Cells["IdS"].Value);
                frmI.StartPosition = FormStartPosition.CenterScreen;
                frmI.ShowDialog();
                frmI.Dispose();
                NaplnDb();
            }
        }