Ejemplo n.º 1
0
 public void AddItem(string text,GroupState state, DateTime datetime, string count, List<string> symbols)
 {
     var ind = panelEx_container.Controls.Count;
     var cntrl = new StyledListItemControl(text, ind, state, datetime, count);
     cntrl.ItemSelectedChanged += cntrl_ItemSelectedChanged;
     panelEx_container.Controls.Add(cntrl);
     //if(SelectedItem==-1) SelectFirstItem();
     cntrl.Symbols = symbols;
 }
Ejemplo n.º 2
0
 public void AddItem(string text, GroupState state, DateTime datetime, string count, List<string> symbols, List<SessionModel> sessions, string timeFrame, bool isAutoCollect)
 {
     //todo
     Invoke((Action)(() =>
     {
         var ind = panelEx_container.Controls.Count;
         var cntrl = new StyledListItemControl(text, ind, state, datetime, count, timeFrame, isAutoCollect);
         cntrl.ItemSelectedChanged += cntrl_ItemSelectedChanged;
         cntrl.ItemEditGroupClick += cntrl_ItemEditGroupClick;
         panelEx_container.Controls.Add(cntrl);
         //if(SelectedItem==-1) SelectFirstItem();
         cntrl.Symbols = symbols;
         cntrl.Sessions = sessions;
     }));
 }
Ejemplo n.º 3
0
 public void AddItem(string text, GroupState state, DateTime datetime, string count, List <string> symbols, List <SessionModel> sessions, string timeFrame, bool isAutoCollect)
 {
     //todo
     Invoke((Action)(() =>
     {
         var ind = panelEx_container.Controls.Count;
         var cntrl = new StyledListItemControl(text, ind, state, datetime, count, timeFrame, isAutoCollect);
         cntrl.ItemSelectedChanged += cntrl_ItemSelectedChanged;
         cntrl.ItemEditGroupClick += cntrl_ItemEditGroupClick;
         panelEx_container.Controls.Add(cntrl);
         //if(SelectedItem==-1) SelectFirstItem();
         cntrl.Symbols = symbols;
         cntrl.Sessions = sessions;
     }));
 }