コード例 #1
0
ファイル: StyledListControl.cs プロジェクト: ruslanlyalko/DA
 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;
 }
コード例 #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;
     }));
 }
コード例 #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;
     }));
 }