list - c# Send dictionary from user control to another form -
i not sure if title correct, here situation. have processdata class, , in save data in dictionary called tradehistory.
now, have user control, , after fetch data, call , display user control multiple times.
on user control, have button, should display list of data saved in dictionary mentioned above.
i figured make 1 more form, name tradinghistoryform, , add dictionary list of parameters accepts, display dictionary list, don't know how reference dictionary in user control mentioned above.
this code in user control:
private void viewtradehistorybtn_click(object sender, eventargs e) { tradinghistoryform tradinghistoryf = new tradinghistoryform(_tradinginstrumentcode,) //dictionary goes here); tradinghistoryf.show(); }
Comments
Post a Comment