/// ------------------------------------------------------------------------------------ /// <summary> /// Return true if data is OK. /// </summary> /// ------------------------------------------------------------------------------------ protected override bool Verify() { _textBoxClassName.Text = _textBoxClassName.Text.Trim(); // Ensure the new class doesn't have an empty class name if (_textBoxClassName.Text == string.Empty) { Utils.MsgBox(LocalizationManager.GetString("DialogBoxes.DefineClassDlg.EmptyClassNameMsg", "Class name must not be empty.")); return(false); } if (m_classesDlg == null) { return(true); } bool exists = m_classesDlg.ClassListView.DoesClassNameExist( _textBoxClassName.Text, m_origClassInfo, true); if (exists) { _textBoxClassName.Focus(); _textBoxClassName.SelectAll(); } return(!exists); }
/// ------------------------------------------------------------------------------------ public DefineClassBaseDlg() { Utils.WaitCursors(true); InitializeComponent(); _labelClassType.Font = FontHelper.UIFont; _labelClassTypeValue.Font = FontHelper.UIFont; _labelClassName.Font = FontHelper.UIFont; _textBoxClassName.Font = FontHelper.UIFont; _textBoxMembers.Font = FontHelper.UIFont; _labelMembers.Font = FontHelper.UIFont; LocalizeItemDlg.StringsLocalized += SetLocalizedTexts; SetLocalizedTexts(); }
/// ------------------------------------------------------------------------------------ protected override void OnShown(EventArgs e) { Utils.WaitCursors(false); base.OnShown(e); }