private void Generate(object sender, EventArgs e) { try { if (String.IsNullOrWhiteSpace(clsPrint.SavingPath)) { MessageBox.Show("Saving Path is not empty."); return; } if (!NameSpaceController.ControlNameSpace(clsPrint.ClassNameSpace)) { MessageBox.Show("NameSpace includes forbidden characters."); return; } chklstTables.Enabled = false; Generate(); chklstTables.Enabled = true; MessageBox.Show("All Tables created.", "Result Info:"); } catch (Exception exc) { tbpgLog.Select(); LogException(exc, 3); } }