Exemplo n.º 1
0
        private void btnEdit2_Click(object sender, EventArgs e)
        {
            if (dgvData.SelectedRows.Count < 1)
            {
                return;
            }

            FrmCamera camera = new FrmCamera(dgvData.SelectedRows[0]);

            camera.ModifyDgvDele = ModifyDgv;
            camera.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnAdd2_Click(object sender, EventArgs e)
        {
            TreeNode tn = tvGuard.SelectedNode;

            if (tn == null)
            {
                return;
            }
            FrmCamera camera = new FrmCamera();

            camera.ModifyDgvDele = ModifyDgv;
            camera.ShowDialog();
        }