Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public SymbolOptions()
 {
   eX4XcIhHpDXt70u2x3N.k8isAcYzkUOGF();
   // ISSUE: explicit constructor call
   base.\u002Ector();
   this.HJulkhpHgk = SymbolOption.FileName;
   this.P2lllBbVmK = true;
   this.DVHluWoYd9 = "";
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 public SymbolOptions()
 {
     eX4XcIhHpDXt70u2x3N.k8isAcYzkUOGF();
     // ISSUE: explicit constructor call
     base.\u002Ector();
     this.HJulkhpHgk = SymbolOption.FileName;
     this.P2lllBbVmK = true;
     this.DVHluWoYd9 = "";
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
        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();
            }
        }
Esempio n. 7
0
        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];
            }
        }
Esempio n. 8
0
 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;
 }
Esempio n. 9
0
 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;
 }