Esempio n. 1
0
        private void buttonStudentAdd_Click(object sender, EventArgs e)
        {
            var Form = new StudentEntityForm();

            Form.sf = this;
            Form.Show();
        }
Esempio n. 2
0
        private void buttonStudentEdit_Click(object sender, EventArgs e)
        {
            try
            {
                var sId = dataGridViewStudent.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(sId))
                {
                    throw new Exception("Не выбран студент");
                }

                var Form = new StudentEntityForm();
                Form.StudentId = sId;
                Form.sf        = this;
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }