コード例 #1
0
 public RowClickedEventArgs(MouseEventArgs mouseArgs_, string columnid_, object listObject_, BoundInfraGrid grid_)
 {
   m_mouseArgs=mouseArgs_;
   m_columnId=columnid_;
   m_listObject=listObject_;
   m_grid=grid_;
 }
コード例 #2
0
    private static void sortOutGrid(BoundInfraGrid grid_, RowClickedEventHandler clickHandler_)
    {
      var band = grid_.Grid.DisplayLayout.Bands[0];
      band.ColHeadersVisible = false;

      SI.Controls.InfraGridColumnFormat.GroupHeaderAttribute.DoIt(grid_.Grid, "blah", 0, "Tenor", 0, false);

      foreach (var market in LiveMarkets.Markets)
      {
        SI.Controls.InfraGridColumnFormat.GroupHeaderAttribute.DoIt(grid_.Grid, market.ToString(), 0,
          string.Format("{0}_Live", market), 0);

        grid_.AddClickHandler(string.Format("{0}_Live", market), clickHandler_);

        SI.Controls.InfraGridColumnFormat.GroupHeaderAttribute.DoIt(grid_.Grid, market.ToString(), 0,
          string.Format("{0}_Chg", market), 0);
      }
    }
コード例 #3
0
    internal void Create(BindingList<CurveReconciler.CompareItem> items_)
    {
      var grid = new BoundInfraGrid();
      grid.Bind(items_);
      grid.Dock=DockStyle.Fill;
      this.splitContainer1.Panel1.Controls.Add(grid);

      var chart = new SimpleWtsColumnChart();
      var sorted = items_.OrderBy(x => x.FIID);

      var headings = sorted.Select(x => x.SymmetryCode.Split(' ')[0]).ToArray();
      var values = sorted.Select(x => (x.DiffAsBps.HasValue) ? x.DiffAsBps.Value : 0d).ToArray();

      chart.SetYAxisFormat("##0.000#");
      chart.Dock = DockStyle.Fill;
      chart.Create(headings, values);
      this.splitContainer1.Panel2.Controls.Add(chart);
    }
コード例 #4
0
    public void Create(string url_)
    {
      if (m_items == null)
      {
        m_items = new BindingList<RSSLineItem>();

        BoundInfraGrid grid = new BoundInfraGrid();
        grid.Dock = DockStyle.Fill;
        Controls.Add(grid);
        grid.Bind(m_items);
        grid.AddClickHandler("Title", (object sender, RowClickedEventArgs e_) => ((RSSLineItem)e_.ListObject).Action());

        timer1.Tick += (object sender, EventArgs e_) => refreshFeed();
      }

      timer1.Stop();
      m_url = url_;
      refreshFeed();
      timer1.Start();
    }
コード例 #5
0
 protected virtual void showUnderlyingData()
 {
   BoundInfraGrid dgrid = new BoundInfraGrid();
   //DataGrid dgrid = new DataGrid();
   dgrid.Bind(dt);
   //dgrid.DataSource = dt;
   dgrid.DisplayInShowForm("Underlying data");
   dgrid.ExcelExportVisible = true;
   //.ShowForm.Show(dgrid, FormBorderStyle.Sizable, null, "Underlying data");
 }
コード例 #6
0
      protected override void OnClick(EventArgs e)
      {
        DataTable dt = m_analyzer.SourceWts.ToDataTable2(m_analyzer.SourceWts.ColumnHeadings);

        SI.Controls.BoundInfraGrid wtsGrid = new SI.Controls.BoundInfraGrid();
        wtsGrid.ColourNegativesRed();
        wtsGrid.Bind(dt);
        SI.Controls.ShowForm.Show(wtsGrid, string.Format("{0} wts", m_analyzer.Name));
      }
コード例 #7
0
 protected override void showUnderlyingData()
 {
   foreach (var table in m_datatables)
   {
     var grid = new BoundInfraGrid();
     grid.Bind(table.Value);
     grid.DisplayInShowForm("Data");
   }
 }
コード例 #8
0
    public void AddCompareInnerGrid()
    {
      if (m_evaluator.InnerSeries.Count == 0)
        return;

      var grid = new SI.Controls.BoundInfraGrid();

      Infragistics.Win.UltraWinTabControl.UltraTab tab = ultraTabControl1.Tabs.Add();
      tab.Text = "Compare Inner";

      //TabPage tp = new TabPage("Compare Inner");
      grid.Dock = DockStyle.Fill;
      //tabControl1.TabPages.Add(tp);
      //tp.Controls.Add(grid);
      tab.TabPage.Controls.Add(grid);
      var list = new BindingList<ReturnsEval.EvaluatorComparisonItem>();
      grid.Bind(list, typeof(ReturnsEval.EvaluatorComparisonItem));
      grid.Grid.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;

      foreach (ReturnsEval.DataSeriesEvaluator eval in m_evaluator.InnerSeries)
        list.Add(new ReturnsEval.EvaluatorComparisonItem(eval));
    }