예제 #1
0
        private void bnAdd_Click(object sender, EventArgs e)
        {
            ProfilePsychoForm profilePsychoForm = new ProfilePsychoForm(dbCon, idSpec, typeDoc);

            profilePsychoForm.MdiParent = this.MdiParent;
            profilePsychoForm.Show();
        }
예제 #2
0
        private void bnEdit_Click(object sender, EventArgs e)
        {
            if (((DataView)dgPsycho.DataSource).Count == 0)
            {
                return;
            }

            int RowIndex = 0;

            RowIndex = dgPsycho.CurrentRow.Index;

            DataRow row = ((DataView)dgPsycho.DataSource)[RowIndex].Row;

            ProfilePsychoForm profilePsychoForm = new ProfilePsychoForm(dbCon, idSpec, typeDoc, row);

            profilePsychoForm.MdiParent = this.MdiParent;
            profilePsychoForm.Show();
        }