示例#1
0
    private async void handleCellClicked(object sender, PerfRowCellClickedEventArgs e_)
    {
      if (e_.Col == PerfRowCol.Today && (ModifierKeys & Keys.Shift) != 0)
      {
        var livePortfolioPnl = await e_.Row.Underlying.GetLiveAllocatedPnl(m_cc);
        LivePortfolioPnlBreakdown.Get(livePortfolioPnl)
          .ToList()
          .DisplayInGrid(string.Format("{0} pnl breakdown", e_.Row.Underlying.RootName));
        return;
      }

      m_lastClicked = e_;

      await porfolioMainView1.Bind(e_.Row.Underlying, e_.Col, getCC());
    }
示例#2
0
    protected void OnCellClicked(PerfRowCellClickedEventArgs e_)
    {
      var h = CellClicked;

      if (h != null)
        h(this, e_);
    }