Пример #1
0
    protected virtual void OnStatCellClicked(CellClickedArgs args_)
    {
      EventHandler<CellClickedArgs> h;

      if ((h = StatCellClicked) != null)
        h(this, args_);
    }
Пример #2
0
    private void handleCellClicked(object sender, CellClickedArgs args_)
    {
      m_lastClicked = args_;

      if (m_lastClicked.Field != BondField.None && args_.Buttons==System.Windows.Forms.MouseButtons.Right)
      {
        var chart = getPeriodReturnChart();
        bool hasData = chart.SetValuesForLineAndFocus(m_lastClicked.Line, m_lastClicked.Field);

        if (!hasData) return;

        if (!object.ReferenceEquals(ultraPopupControlContainer1.PopupControl, chart))
          ultraPopupControlContainer1.PopupControl = chart;

        ultraPopupControlContainer1.Show(Cursor.Position);
      }

      if (m_lastClicked.Buttons == System.Windows.Forms.MouseButtons.Left)
      {
        if (m_fieldForMiddleChart == args_.Field || AttributeHelper.GetSingleAttribute<EnumDescriptionAttribute>(args_.Field)==null ) return;
        m_fieldForMiddleChart = args_.Field;
        reloadMiddleChart(bondsInScope());
      }
    }