private bool validate() { if (string.IsNullOrWhiteSpace(txtNameSpacePrefix.Text.Trim())) { MessageBox.Show(Resources.NameSpace_Is_Not_Empty); txtNameSpacePrefix.Focus(); return(false); } this.listCheckedTables = TableControl.GetCheckedTableName(dgvDataTables, this.rbPascal.Checked); if (this.listCheckedTables.Count == 0) { MessageBox.Show(ConstantUtil.CheckedNoTable); return(false); } return(true); }