public void SelectOption(string option) { SymbolOption[] options = optionsDictionary.Values.ToArray(); int index; bool isIndex = int.TryParse(option, out index); if (isIndex) { if (options.Any(o => o.Index == index)) { string value = options.Where(o => o.Index == index).SingleOrDefault().Value; this.currentOption = options.Where(o => o.Index == index).SingleOrDefault(); } } else if (options.Any(o => o.Value == option)) { string value = options.Where(o => o.Value == option).SingleOrDefault().Value; this.currentOption = options.Where(o => o.Value == option).SingleOrDefault(); } else { this.currentOption = null; } }
public SymbolOptions() { eX4XcIhHpDXt70u2x3N.k8isAcYzkUOGF(); // ISSUE: explicit constructor call base.\u002Ector(); this.HJulkhpHgk = SymbolOption.FileName; this.P2lllBbVmK = true; this.DVHluWoYd9 = ""; }
public ImportSettings() { this.taqDataFile = (FileInfo)null; this.taqIndexFile = (FileInfo)null; this.dataFormatVersion = DataFormatVersion.Version1; this.dataType = DataType.Quote; this.symbolOption = SymbolOption.Existents; this.symbols = (string[])null; }
public ImportSettings() { eX4XcIhHpDXt70u2x3N.k8isAcYzkUOGF(); // ISSUE: explicit constructor call base.\u002Ector(); this.OoZn9gfXp = (FileInfo)null; this.cgB729ckl = (FileInfo)null; this.GuqLARiYy = DataFormatVersion.Version1; this.cQuiVdlGs = DataType.Quotes; this.Y4E9oe16h = SymbolOption.Existents; this.XIc3J9S4f = (string[])null; }
public void SelectOption(int optionIndex) { // will always look at the index. SymbolOption[] options = optionsDictionary.Values.ToArray(); int index = optionIndex; if (options.Any(o => o.Index == index)) { string value = options.Where(o => o.Index == index).SingleOrDefault().Value; this.currentOption = options.Where(o => o.Index == index).SingleOrDefault(); } }
public void AddOption(string value, string title, string description = null) { if (this.optionsDictionary.ContainsKey(value)) { SymbolOption option = this.optionsDictionary[value]; option.Value = value; } else { SymbolOption option = new SymbolOption(value, this.optionsDictionary.Count(), title, description); this.optionsDictionary.Add(value, option); } if (value == this.DefaultValue) { currentOption = optionsDictionary[value]; } }
public ImportSettings() { this.taqDataFile = (FileInfo) null; this.taqIndexFile = (FileInfo) null; this.dataFormatVersion = DataFormatVersion.Version1; this.dataType = DataType.Quote; this.symbolOption = SymbolOption.Existents; this.symbols = (string[]) null; }
public ImportSettings() { eX4XcIhHpDXt70u2x3N.k8isAcYzkUOGF(); // ISSUE: explicit constructor call base.\u002Ector(); this.OoZn9gfXp = (FileInfo) null; this.cgB729ckl = (FileInfo) null; this.GuqLARiYy = DataFormatVersion.Version1; this.cQuiVdlGs = DataType.Quotes; this.Y4E9oe16h = SymbolOption.Existents; this.XIc3J9S4f = (string[]) null; }