Exemple #1
0
        /// <summary>
        /// Кнопка добавления ученой степени
        /// </summary>
        private void AddButton_Click(object sender, EventArgs e)
        {
            AddAcademicDegree addAcademicGegree = new AddAcademicDegree
            {
                Owner = this
            };

            addAcademicGegree.Show();
        }
Exemple #2
0
        /// <summary>
        /// Кнопка изменения ученой степени
        /// </summary>
        private void ChangeButton_Click(object sender, EventArgs e)
        {
            if (DG_AcademicDegree.SelectedRows.Count == 1)
            {
                DataRow         Row             = ((DataRowView)DG_AcademicDegree.SelectedRows[0].DataBoundItem).Row;
                MAcademicDegree mAcademicDegree = new MAcademicDegree((string)Row["FullName"], (string)Row["Reduction"]);

                AddAcademicDegree addAcademicDegree = new AddAcademicDegree(mAcademicDegree)
                {
                    Owner = this
                };
                addAcademicDegree.Show();
            }
            else
            {
                MessageBox.Show("Для изменения выделите только одну строку");
            }
        }