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; }
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; })); }
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; })); }