private void buttonEditColumn_Click(object sender, EventArgs e) { var column = listBoxColumns.GetSelectedItem <IColumn>(); if (column != null) { EditColumn.RaiseEventEx(this, new GenericEventArgs <IColumn>(column)); } }
void listBoxColumn_MouseDoubleClick(object sender, MouseEventArgs e) { int index = listBoxColumn.IndexFromPoint(e.Location); if (index == -1) { return; } EditColumn.RaiseEventEx(this); }