private void InitialiseDropDowns() { rule80A.Items.AddRange(Rule80A.GetAll()); rule80A.SelectedIndex = 0; triggerMethod.Items.AddRange(IBSampleApp.types.TriggerMethod.GetAll()); triggerMethod.SelectedIndex = 0; faMethod.Items.AddRange(FaMethod.GetAll()); faMethod.SelectedIndex = 0; ocaType.Items.AddRange(OCAType.GetAll()); ocaType.SelectedIndex = 0; hedgeType.Items.AddRange(HedgeType.GetAll()); hedgeType.SelectedIndex = 0; optionReferencePrice.Items.AddRange(ReferencePriceType.GetAll()); optionReferencePrice.SelectedIndex = 0; volatilityType.Items.AddRange(VolatilityType.GetAll()); volatilityType.SelectedIndex = 0; contractRight.Items.AddRange(ContractRight.GetAll()); contractRight.SelectedIndex = 0; cbPeggedChangeType.SelectedIndex = 0; cbAdjustedOrderType.SelectedIndex = 0; cbAdjustedTrailingAmntUnit.Items[0] = TrailingAmountUnit.amnt; cbAdjustedTrailingAmntUnit.Items[1] = TrailingAmountUnit.percent; cbAdjustedTrailingAmntUnit.SelectedIndex = 0; }
private void InitialiseDropDowns() { rule80A.Items.AddRange(Rule80A.GetAll()); rule80A.SelectedIndex = 0; triggerMethod.Items.AddRange(TriggerMethod.GetAll()); triggerMethod.SelectedIndex = 0; faMethod.Items.AddRange(FaMethod.GetAll()); faMethod.SelectedIndex = 0; ocaType.Items.AddRange(OCAType.GetAll()); ocaType.SelectedIndex = 0; hedgeType.Items.AddRange(HedgeType.GetAll()); hedgeType.SelectedIndex = 0; optionReferencePrice.Items.AddRange(ReferencePriceType.GetAll()); optionReferencePrice.SelectedIndex = 0; volatilityType.Items.AddRange(VolatilityType.GetAll()); volatilityType.SelectedIndex = 0; contractRight.Items.AddRange(ContractRight.GetAll()); contractRight.SelectedIndex = 0; }
public static string ToFIX(FaMethod value) { switch (value) { case FaMethod.PctChange: return "PctChange"; case FaMethod.AvailableEquity: return "AvailableEquity"; case FaMethod.NetLiq: return "NetLiq"; case FaMethod.EqualQuantity: return "EqualQuantity"; default: throw new ArgumentException(string.Format("Error: ", (object)value)); } }
public static string ToFIX(FaMethod value) { switch (value) { case FaMethod.PctChange: return("PctChange"); case FaMethod.AvailableEquity: return("AvailableEquity"); case FaMethod.NetLiq: return("NetLiq"); case FaMethod.EqualQuantity: return("EqualQuantity"); default: throw new ArgumentException(string.Format("Error: ", (object)value)); } }