public FutureContract(string ric, string bbgBase, string bbgSuffix, RollControl contractEnd) { this.ric = ric; this.bbgBase = bbgBase; this.bbgSuffix = bbgSuffix; // set default contract end type ContractEnd = contractEnd; }
public FutureBuilder(BondSpreadServiceModel bondSpreadServiceModel) { //bondSpreadServiceModel = new BondSpreadServiceModel(); this.bondSpreadServiceModel = bondSpreadServiceModel; // default some settings rollControl = RollControl.FirstNotice; calendar = "USNY"; futureContractHeaders = new[] {"TU", "FV", "TY", "US", "WN"}; }
public DoubleVector3RollBallAndSliderPropertyControl(PropertyControlInfo propInfo) : base(propInfo) { base.SuspendLayout(); this.header = new HeadingLabel(); this.header.Name = "header"; this.header.RightMargin = 0; this.header.Text = base.DisplayName; this.rollControl = new RollControl(); this.rollControl.Name = "rollControl"; this.rollControl.ValueChanged += new EventHandler(this.OnRollControlValueChanged); this.rollControl.Size = new Size(1, 1); this.sliders = new DoubleVector3SliderPropertyControl(propInfo); this.sliders.Name = "sliders"; this.sliders.DisplayName = ""; this.sliders.Description = ""; this.textDescription = new PdnLabel(); this.textDescription.Name = "textDescription"; this.textDescription.Text = base.Description; Control[] controls = new Control[] { this.header, this.rollControl, this.sliders, this.textDescription }; base.Controls.AddRange(controls); base.ResumeLayout(false); }