Exemple #1
0
        private void add_btn_Click(object sender, EventArgs e)
        {
            SVForm   svForm = new SVForm();
            passData pData  = new passData(svForm.passData);

            svForm.ClosePanel += HandleCloseRequest;
            pData(new SV());
            svForm.Show();
        }
Exemple #2
0
        private void edit_btn_Click(object sender, EventArgs e)
        {
            SV sv = (SV)dataGridView1.CurrentRow.DataBoundItem;
            // SVForm svForm = new SVForm(sv, this);
            SVForm svForm = new SVForm();

            svForm.ClosePanel += HandleCloseRequest;
            passData pData = new passData(svForm.passData);

            pData(sv);
            svForm.Show();
        }