Example #1
0
    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 { }
    }
Example #2
0
    protected virtual void OnStatCellClicked(CellClickedArgs args_)
    {
      EventHandler<CellClickedArgs> h;

      if ((h = StatCellClicked) != null)
        h(this, args_);
    }