Add a Button to Show the Current OrderID using the Click event
- Add a button to the form
- Show the Events Tab in the "Properties" window in Visual Studio
- Double click the
Click
event and show how Visual Studio generates the code that will be executed when the user clicks on the button. - Show a message box when the user clicks on a button
- Use the
_controll
field to access the controller and extract the order id
private void button1_Click(object sender, ButtonClickEventArgs e)
{
MessageBox.Show("Order ID: " + _controller.Orders.OrderID);
}
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com