c# - How to declare a value from commandparameter as global -
how can set commandparameter value global.
here code
public partial class uctrlclientdetailpage : usercontrol { public uctrlclientdetailpage(int clientid) { // } }
//passing value
private void button_click(object sender, routedeventargs e) { button btn = (button)e.originalsource; uctrlclientdetailpage objuctrlproxydetails = new uctrlclientdetailpage(int.parse(btn.commandparameter.tostring())); }
i pass clientid commandparameter page.i want declare clientid global how can set this.
thanks in advance help...
c# wpf
No comments:
Post a Comment