Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2016, Mike Murach & Associates, Inc.

Similar presentations


Presentation on theme: "© 2016, Mike Murach & Associates, Inc."— Presentation transcript:

1 © 2016, Mike Murach & Associates, Inc.
Chapter 6 © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

2 © 2016, Mike Murach & Associates, Inc.
Objectives © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

3 © 2016, Mike Murach & Associates, Inc.
Objectives (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

4 The basic syntax for coding a method
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

5 A method with one parameter that returns a decimal value
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

6 A method with three parameters that returns a decimal value
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

7 The syntax for calling a method
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

8 The IntelliSense feature for calling a method
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

9 The syntax for an optional parameter
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

10 © 2016, Mike Murach & Associates, Inc.
A statement that passes arguments for all three parameters to the function © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

11 Two statements that pass the arguments for two parameters by name
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

12 The btnCalculate_Click method with selected statements
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

13 The method call that replaces the selected code
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

14 How to use refactoring to create a new method from existing code
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

15 The basic syntax of the parameters in a parameter list
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

16 Code that works with the CalculateFutureValue method
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

17 © 2016, Mike Murach & Associates, Inc.
Code that works with a CalculateFutureValue method that uses the out keyword © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

18 The Events list for a text box control
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

19 The default event handler for a text box
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

20 A custom event handler for a text box
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

21 How to select an existing event handler for an event
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

22 How to wire an event to an existing event handler
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

23 The code for the methods in the Future Value application
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

24 The code for the methods in the Future Value application (cont.)
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

25 Some of the generated code in the Designer.cs file for the form
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

26 © 2016, Mike Murach & Associates, Inc.
Some of the generated code in the Designer.cs file for the form (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

27 Extra 6-1 Create a simple calculator
© 2016, Mike Murach & Associates, Inc. Murach's C# 2015

28 © 2016, Mike Murach & Associates, Inc.
Extra 6-2 Add a method and an event handler to the income tax calculator © 2016, Mike Murach & Associates, Inc. Murach's C# 2015


Download ppt "© 2016, Mike Murach & Associates, Inc."

Similar presentations


Ads by Google