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

            Form.sf = this;
            Form.Show();
        }
示例#2
0
        private void buttonGroupEdit_Click(object sender, EventArgs e)
        {
            try
            {
                var sgId = dataGridViewGroup.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(sgId))
                {
                    throw new Exception("Не выбрана группа");
                }

                var Form = new GroupEntityForm();
                Form.GroupId = Int32.Parse(sgId);
                Form.sf      = this;
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }