예제 #1
0
        private void buttonStudyFormAdd_Click(object sender, EventArgs e)
        {
            var Form = new StudyFormEntityForm();

            Form.sf = this;
            Form.Show();
        }
예제 #2
0
        private void buttonStudyFormEdit_Click(object sender, EventArgs e)
        {
            try
            {
                var sSFId = dataGridViewStudyForm.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(sSFId))
                {
                    throw new Exception("Не выбрана форма обучения");
                }

                var Form = new StudyFormEntityForm();
                Form.StudyFormId = Int32.Parse(dataGridViewStudyForm.SelectedCells[0].Value.ToString());
                Form.sf          = this;
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }