private void fireFromSelected(MouseButtons button_) { try { if (Grid.Selected.Cells.Count == 0) return; var cellArgs = new CellClickedArgs(button_); foreach (var cell in Grid.Selected.Cells) { if (!(cell.Row.ListObject is SwapsSummaryRow)) continue; cellArgs.AddItem((SwapsSummaryRow) cell.Row.ListObject, cell.Column.Key); } OnStatCellClicked(cellArgs); } catch { } }
protected virtual void OnStatCellClicked(CellClickedArgs args_) { EventHandler<CellClickedArgs> h; if ((h = StatCellClicked) != null) h(this, args_); }