本文整理汇总了C#中FreeQuant.Instruments.Instrument.AddField方法的典型用法代码示例。如果您正苦于以下问题:C# Instrument.AddField方法的具体用法?C# Instrument.AddField怎么用?C# Instrument.AddField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FreeQuant.Instruments.Instrument
的用法示例。
在下文中一共展示了Instrument.AddField方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QmHMIFYlFO
private void QmHMIFYlFO([In] object obj0, [In] EventArgs obj1)
{
this.jA3M607Con(false);
this.Cursor = Cursors.WaitCursor;
this.jdxMcrTVkr.Minimum = 0;
this.jdxMcrTVkr.Value = 0;
this.jdxMcrTVkr.Maximum = this.Av6MXcQF5Z.CheckedItems.Count;
int num1 = 0;
int num2 = 0;
foreach (SecurityDefinitionViewItem definitionViewItem in this.Av6MXcQF5Z.CheckedItems)
{
string symbol = this.DsUMrBufkW(definitionViewItem.SecurityDefinition);
if (!InstrumentManager.Instruments.Contains(symbol))
{
Instrument instrument = new Instrument(symbol, definitionViewItem.SecurityDefinition.SecurityType);
foreach (FIXField field in definitionViewItem.SecurityDefinition.Fields)
{
if (field.Tag != 55 && field.Tag != 167)
instrument.AddField(field);
}
if (!instrument.ContainsField(541))
{
DateTime result = DateTime.MinValue;
string str = instrument.ContainsField(205) ? instrument.MaturityDay : RNaihRhYEl0wUmAftnB.aYu7exFQKN(32660);
if (str.Length == 1)
str = RNaihRhYEl0wUmAftnB.aYu7exFQKN(32668) + str;
if (DateTime.TryParseExact(instrument.MaturityMonthYear + str, RNaihRhYEl0wUmAftnB.aYu7exFQKN(32674), (IFormatProvider) CultureInfo.InvariantCulture, DateTimeStyles.None, out result))
instrument.MaturityDate = result;
}
if ((int) this.ElZM5QiWFt.Id == 10)
{
instrument.AddSymbol(definitionViewItem.SecurityDefinition.Symbol, definitionViewItem.SecurityDefinition.SecurityExchange, RNaihRhYEl0wUmAftnB.aYu7exFQKN(32694));
instrument.AddSymbol(definitionViewItem.SecurityDefinition.Symbol, definitionViewItem.SecurityDefinition.SecurityExchange, RNaihRhYEl0wUmAftnB.aYu7exFQKN(32710));
}
if ((int) this.ElZM5QiWFt.Id == 21)
instrument.AddSymbol(definitionViewItem.SecurityDefinition.SecurityID, definitionViewItem.SecurityDefinition.SecurityExchange, this.ElZM5QiWFt.Name);
if ((int) this.ElZM5QiWFt.Id == 22)
{
instrument.AddSymbol(definitionViewItem.SecurityDefinition.SecurityID, definitionViewItem.SecurityDefinition.SecurityExchange, this.ElZM5QiWFt.Name);
instrument.RemoveField(48);
}
instrument.Save();
++num1;
}
else
++num2;
++this.jdxMcrTVkr.Value;
Application.DoEvents();
}
this.jA3M607Con(true);
this.Cursor = Cursors.Default;
int num3 = (int) MessageBox.Show(string.Format(RNaihRhYEl0wUmAftnB.aYu7exFQKN(32726) + Environment.NewLine + RNaihRhYEl0wUmAftnB.aYu7exFQKN(32788), (object) num1, (object) num2), RNaihRhYEl0wUmAftnB.aYu7exFQKN(32828), MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}