internal void Bind(BondClusterArguments args_)
    {
      tbMaturityGapMax.Bind(args_, "MaxMaturityDistance", new Validators.DoubleValidator("##0.0"));
      tbMaturityGapMin.Bind(args_, "MinMaturityDistance", new Validators.DoubleValidator("##0.0"));

      tbMin.Bind(args_, "MiniumumNumber", new Validators.IntValidator());
      tbMax.Bind(args_, "MaximumNumber", new Validators.IntValidator());
    }
Exemplo n.º 2
0
    internal BondClusterArguments GetClusterArgs(int index_)
    {
      if (m_clusterArgs==null)
      {
        m_clusterArgs = new BondClusterArguments[2];

        m_clusterArgs[0] = new BondClusterArguments()
        {
          MinMaturityDistance=3d,
          MaxMaturityDistance=7d,
          MiniumumNumber=1,
          MaximumNumber=10
        };

        m_clusterArgs[1] = new BondClusterArguments()
        {
          MaxMaturityDistance = 3d,
          MiniumumNumber = 1,
          MaximumNumber = 5
        };

      }
      return m_clusterArgs[index_];
    }