I have two buttons in my code, a Buy and a Sell that I like to be triggered either by a click or through the code.
- myBuyButton.Click += OnMyButtonClick;
- mySellButton.Click += OnMyButtonClick;
- OnMyButtonClick(MyBuyButton) to simulate the buy button click
- OnMyButtonClick(MySellButton) to simulate the sell button click
None of them works.
Comment