private void ButtonNewCurrencyClick(object sender, EventArgs e) { _ = new OneAttributeForm(this, "Währung", "currency") { Visible = true }; }
private void ButtonNewAssetClassClick(object sender, EventArgs e) { _ = new OneAttributeForm(this, "Asset-Klasse", "asset_class") { Visible = true }; }
private void ButtonAddRatingAgency_Click(object sender, EventArgs e) { _ = new OneAttributeForm(this, "Rating-Agentur", "rating_agency") { Visible = true }; }
private void InitializeCustomComponents() { ruleName = FormUtility.CreateTextBox(20, 5); addNewAssetKind = FormUtility.CreateButton("Neue Titelart hinzufügen", 20, 65); addNewAssetKind.Click += (sender, e) => new OneAttributeForm(this, "Titelart", "asset_kind").Visible = true; dataGridView = FormUtility.CreateDataGridView(typeof(AssetKind), 20, 210, 400, 1050); ToolStripMenuItem contextMenuItemDelete = FormUtility.CreateContextMenuItem("Löschen", (sender, e) => { TableUtility tableUtility = new TableUtility(); tableUtility.DeleteTableRow(GetSelectedAssetKind()); dataGridView.Rows.Remove(dataGridView.SelectedRows[0]); }); ToolStripMenuItem contextMenuItemEdit = FormUtility.CreateContextMenuItem("Bearbeiten", (sender, e) => { selectedAssetKind = GetSelectedAssetKind(); _ = new OneAttributeForm(this, "Titelart", "asset_kind_edit", selectedAssetKind.Description) { Visible = true }; }); FormUtility.AddContextMenu(dataGridView, contextMenuItemEdit, contextMenuItemDelete); FormUtility.AddControlsToForm(this, dataGridView, addNewAssetKind, ruleName); }