private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddEditClass frmAddCS = new frmAddEditClass();

            if (frmAddCS.ShowDialog() == DialogResult.OK)
            {
                ReloadClasses();
            }
        }
 private void btnEditName_Click(object sender, EventArgs e)
 {
     if (cbClasses.Items.Count > 0)
     {
         frmAddEditClass frmEditCS = new frmAddEditClass(cbClasses.SelectedItem as SmartB1tCSClass);
         if (frmEditCS.ShowDialog() == DialogResult.OK)
         {
             ReloadClasses();
         }
     }
 }