private void buttonAddGroup_Click(object sender, EventArgs e)
        {
            FormAddGroup dlg = new FormAddGroup();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                // todo 效率太低
                MemCfgInfo.MemDbMgr.Get().Load();
            }
        }
Beispiel #2
0
    private void AddGroupHandler(object sender, EventArgs e)
    {
        if (comboBoxParting.SelectedIndex == -1)
        {
            MessageBox.Show("Не выбрано отделение.");
            return;
        }
        FormAddGroup addform = new FormAddGroup(college);

        addform.GroupTypeComboBox.Text    = comboBoxParting.Text;
        addform.GroupTypeComboBox.Enabled = false;
        addform.ShowDialog();

        UpdateGroupsListHandler(null, null);
    }