private void OnMouse_SingleClick(object sender, MouseEventArgs mouseEventArgs) { if (mouseEventArgs.Clicks > 1) { return; } OLVColumn column; var listItem = GetItemAt(mouseEventArgs.X, mouseEventArgs.Y, out column); var clickedNode = listItem?.RowObject as ConnectionInfo; if (clickedNode == null) { return; } SingleClickHandler.Execute(clickedNode); }
private void OnMouse_SingleClick(object sender, MouseEventArgs mouseEventArgs) { if (mouseEventArgs.Clicks > 1) { return; } // ReSharper disable once NotAccessedVariable OLVColumn column; var listItem = GetItemAt(mouseEventArgs.X, mouseEventArgs.Y, out column); if (!(listItem?.RowObject is ConnectionInfo clickedNode)) { return; } SingleClickHandler.Execute(clickedNode); }