Using same Implimentations within 2 Locations
How can I use the Same implementation in 2 Locations
I have Implemented EdgeDriver within the Form
But I would like to Close the Driver within the Button Click.
I would also like to Control and Close the Loading of Edge within the Close Button.
https://pastebin.com/RnMtv6rd
Pastebin
NVR Loader - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
2 Replies
Are the two locations the buttons handled in Close_FS_click and button2_Click?
Generally if you want to reuse code, you would put it in a method and call it from the various locations.
The Code i want to use is the Driver implimentation.