I am using WFA. I have two methods as follows:
public void method1(object abc)
{
}
public void method2(object abc)
{
}
I have a checkbox which can be checked or unchecked. If it is checked, it has to execute method1 , if unchecked, it has to execute method2. Both methods take object abc which comes from a different method.
After some research I figured, checkChanged event helps you do something like that. But the main issue I’m facing is not being able to pass the object abc into it to do the operation.
I also tried creating a new method that does the operation but passing object abc is what’s obstructing me.
I’m fairly new to programming so any idea/suggestion/help would be greatly appreciated. I’m pretty sure I’m overlooking something very simple.
Aucun commentaire:
Enregistrer un commentaire