/// <summary> /// Configures the form on load. /// </summary> private void FormLoad() { LoadData(); this.dbTreeView.LoadTreeView(this.dbObjects, AppStatic.Server, AppStatic.Database); creator = null; tabControl.Visible = false; }
/// <summary> /// Generate Simple Typed Datatable menu-item click evennt handler. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">Event Argument.</param> private void GenerateSimpleTypedDatatableToolStripMenuItem_Click(object sender, EventArgs e) { try { tabPage1.Text = @"Simple Typed Datatable"; _creator = null; _creator = new TypedDatatableCreator(); classGeneratorSetting.ApplySettings(); } catch (Exception ex) { ErrorViewerForm.ShowError(ex, this); } }
/// <summary> /// Generate C# Class menu-item click event handler. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">Event Argument.</param> private void PocoGenerateMenuItem_Click(object sender, EventArgs e) { try { tabPage1.Text = @"C# Class"; _creator = null; _creator = new CSharpClassCreator(); classGeneratorSetting.ApplySettings(); } catch (Exception ex) { ErrorViewerForm.ShowError(ex, this); throw; } }