private void InvokeStatistikToolSetRequired(StatistikTool statistikTool) { EventHandler <InterfaceEventHandler> handler = StatistikToolSetRequired; if (handler != null) { StatistikToolSetRequired(this, new InterfaceEventHandler(statistikTool)); } }
private void StatistikAufrufen(object sender, EventArgs e) { int indexName = dgvNamen.SelectedCells[0].RowIndex; DataGridViewRow selectedRow = dgvNamen.Rows[indexName]; StatistikTool statistikTool = new StatistikTool(Convert.ToInt16(selectedRow.Cells[0].Value)); InvokeStatistikToolSetRequired(statistikTool); statistikTool.Anzeigen(); }