示例#1
0
        private void buttonSpecialtyAdd_Click(object sender, EventArgs e)
        {
            var Form = new SpecialtyEntityForm();

            Form.sf = this;
            Form.Show();
        }
示例#2
0
        private void buttonSpecialtyEdit_Click(object sender, EventArgs e)
        {
            try
            {
                var sSFId = dataGridViewSpecialty.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(sSFId))
                {
                    throw new Exception("Не выбрана специальность");
                }

                var Form = new SpecialtyEntityForm();
                Form.SpecialtyId = dataGridViewSpecialty.SelectedCells[0].Value.ToString();
                Form.sf          = this;
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }