Example #1
0
 private void initComboBoxSymbolGroup()
 {
     _symbolGroupList = _symbolGroupService.GetAllSymbolGroups();
     foreach (SymbolGroup symbolGroup in _symbolGroupList)
     {
         comboBoxSymbolGroup.Items.Add(symbolGroup.Name);
     }
     comboBoxSymbolGroup.SelectedIndex = 0;
 }
Example #2
0
        public IActionResult ReactDemo()
        {
            ModelData modelData = new ModelData();

            List <Symbol> allSymbols = _symbolService.GetAllSymbols().ToList();

            foreach (Symbol symbol in allSymbols)
            {
                symbol.SymbolGroup = null;
            }
            modelData.AllSymbols = JsonConvert.SerializeObject(allSymbols);

            List <SymbolGroup> allSymbolGroups = _symbolGroupService.GetAllSymbolGroups();

            foreach (SymbolGroup symbolGroup in allSymbolGroups)
            {
                symbolGroup.Symbols = null;
            }
            modelData.AllSymbolGroups = JsonConvert.SerializeObject(allSymbolGroups);

            return(View(modelData));
        }