Beispiel #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            var subject = (SubjectModel)dgSubjects.Rows[dgSubjects.CurrentCell.RowIndex].DataBoundItem;
            var form    = new SubjectForm(subject, this);

            form.Show();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var form = new SubjectForm(null, this);

            form.Show();
        }