1 00:00:00,920 --> 00:00:07,440 You guys are continuing the development of our current wind farms application and we're know at this 2 00:00:07,440 --> 00:00:13,290 stage what we want to actually start collecting the information from the farm upon submit. 3 00:00:13,290 --> 00:00:20,250 No I want to use this about a minute to explain a very important concept that can save you a lot of 4 00:00:20,250 --> 00:00:22,050 time in your development activity. 5 00:00:22,070 --> 00:00:29,490 And this is renaming your controls so when we're designing this farm we went to the tool box to drug 6 00:00:29,490 --> 00:00:35,580 law that controls and replace them where we wanted we change a few properties one property we did not 7 00:00:35,730 --> 00:00:37,620 change was the name. 8 00:00:37,620 --> 00:00:44,040 So if we click on the text box we would see that it has a name property and every control that you're 9 00:00:44,040 --> 00:00:50,650 going to click on has a name property and the name here is text box one no by default. 10 00:00:50,670 --> 00:00:52,220 It's going to always be counting. 11 00:00:52,230 --> 00:00:56,370 So if this is the first x box it's going to be a text box on the second text box is going to be text 12 00:00:56,370 --> 00:00:59,330 box to the third fourth et cetera et cetera. 13 00:00:59,400 --> 00:01:05,880 That is not ideal when you have a few text boxes because you want to know which text box exactly has 14 00:01:05,880 --> 00:01:06,790 the customer name. 15 00:01:06,790 --> 00:01:12,540 So by leaving them as the default name text box on Text Box 2 et cetera every time you're going to want 16 00:01:12,540 --> 00:01:16,650 to know the information you're going to have to come back over click on the text box look at the name 17 00:01:16,650 --> 00:01:17,290 and say Oh yeah. 18 00:01:17,300 --> 00:01:18,200 That's the one I want. 19 00:01:18,210 --> 00:01:23,880 So I'm going to give you a little technique that's his best practice actually that will help you to 20 00:01:23,880 --> 00:01:31,770 reduce the amount of investigation and you know time you spend trying to find the control you want and 21 00:01:31,770 --> 00:01:33,780 that is simply to change the name. 22 00:01:33,780 --> 00:01:42,180 So I have a simple convention where I use that prefix to take to determine or to the peak rather the 23 00:01:42,180 --> 00:01:49,290 type of control that is being referenced and then I give it a name that is akin to the information that 24 00:01:49,290 --> 00:01:50,280 it's supposed to have. 25 00:01:50,280 --> 00:01:54,090 So let's do the text box so I have the text box here. 26 00:01:54,120 --> 00:01:56,110 That's his gloating customer name. 27 00:01:56,130 --> 00:02:03,180 So my ideal name for this is not Text Box 1 but it would be something like TB which is short for text 28 00:02:03,180 --> 00:02:09,200 box or you could say a t t whatever it is but some prefix that says this is a takes the box. 29 00:02:09,210 --> 00:02:09,570 Right. 30 00:02:09,960 --> 00:02:12,570 So I'm saying TB customer 31 00:02:14,680 --> 00:02:19,450 customer me can't know that this is me naming the objects. 32 00:02:19,450 --> 00:02:21,820 So remember I said that each control is an object. 33 00:02:22,030 --> 00:02:24,890 So by saying TB customer name I not take Suboxone. 34 00:02:24,900 --> 00:02:28,420 This object is no called TB customer name. 35 00:02:28,420 --> 00:02:33,090 The same rules that apply to deeming a variable apply here. 36 00:02:33,090 --> 00:02:39,400 No spaces no special characters all set of the underscore just the simpler the better. 37 00:02:39,400 --> 00:02:39,800 All right. 38 00:02:39,830 --> 00:02:44,510 So no need to have in a long complicated need with 50 characters. 39 00:02:44,560 --> 00:02:47,020 Somebody asked me one time if there was a character limit. 40 00:02:47,020 --> 00:02:52,840 I said there is none but I'm not entirely sure why what he had in mind for a name. 41 00:02:53,080 --> 00:02:54,820 But you know the simpler the better. 42 00:02:54,820 --> 00:03:01,010 So TB cluster My name is saying that this is a text box simple that should be holding the customer name. 43 00:03:01,120 --> 00:03:06,880 And I'm going to repeat that for every other control because then I want to be able to reference them 44 00:03:06,940 --> 00:03:08,370 easily from code. 45 00:03:08,440 --> 00:03:13,950 But let's just start with the TB customer name and then I want to be. 46 00:03:13,990 --> 00:03:20,920 I want that when the person click submit I want to print the contents of the customer need takes box 47 00:03:21,040 --> 00:03:23,800 in another window someone to acknowledge that. 48 00:03:23,830 --> 00:03:24,770 Okay. 49 00:03:24,880 --> 00:03:27,890 CAR has been rented to that person. 50 00:03:28,450 --> 00:03:35,270 So that means my clique needs to work my Submit button needs to do something when it is clicked. 51 00:03:35,290 --> 00:03:40,510 So I would stop Campbell being very deliberate when creating your events and I'm going to show you exactly 52 00:03:40,510 --> 00:03:41,250 what I meant. 53 00:03:41,620 --> 00:03:42,120 So we could. 54 00:03:42,120 --> 00:03:49,360 Car button we go to properties and then you notice that in our proper discipline we have this paper 55 00:03:49,360 --> 00:03:55,600 with our wrench on top it may look you know shady on my display but it may look better on yours but 56 00:03:55,600 --> 00:04:02,020 that paper with that wrench that's the properties we know are the properties section of the pin and 57 00:04:02,020 --> 00:04:05,740 then we have this lightning bolts and if we hover we see events. 58 00:04:05,740 --> 00:04:11,890 So when we hover over our lightning bolts we see the menu switch and then we have a bunch of options 59 00:04:11,890 --> 00:04:13,090 for events. 60 00:04:13,210 --> 00:04:17,020 And once again an event is like our reaction to an action. 61 00:04:17,050 --> 00:04:17,310 Right. 62 00:04:17,320 --> 00:04:19,710 So a click is an action. 63 00:04:19,720 --> 00:04:23,060 What do you want to do when I am clicked. 64 00:04:23,140 --> 00:04:24,790 That is basically what an event is. 65 00:04:24,790 --> 00:04:30,990 So I have the button and I want to determine that something should happen when said button is clicked 66 00:04:31,330 --> 00:04:35,900 so far that I need a method stub so I can click this. 67 00:04:36,000 --> 00:04:41,490 Make sure I am click and then double click in this look editable looking area. 68 00:04:41,510 --> 00:04:46,500 And when I do that it generates that method stub just like it did with the label when we double clicked 69 00:04:46,510 --> 00:04:48,120 it's in our previous video. 70 00:04:48,160 --> 00:04:48,550 All right. 71 00:04:48,760 --> 00:04:50,580 But once again I was very deliberate. 72 00:04:50,590 --> 00:04:52,240 I knew exactly what I was doing. 73 00:04:52,240 --> 00:04:57,610 So long story short the shortest way to make I click event for a button for sure is that just a little 74 00:04:57,610 --> 00:05:00,640 click it then it will generate that event no problem. 75 00:05:00,640 --> 00:05:04,090 But I want you to be very deliberate when you're doing that. 76 00:05:04,090 --> 00:05:05,780 So you know exactly what you're doing. 77 00:05:05,800 --> 00:05:10,060 You're not making any mistakes along the way or reducing the mistakes you make along the way. 78 00:05:10,630 --> 00:05:16,480 So we wanted to click event so no it brings us over to the code file or the code behind. 79 00:05:16,690 --> 00:05:20,520 And then this is take a look at what this click event looks like. 80 00:05:20,610 --> 00:05:25,690 It's a private void and then it has the name off the button but no one on the score click. 81 00:05:25,750 --> 00:05:26,050 Right. 82 00:05:26,080 --> 00:05:30,450 So that's another reason you want to rename your controls because you fired six buttons. 83 00:05:30,520 --> 00:05:34,940 I wouldn't want but one underscore a click button to underscore a click instead. 84 00:05:34,990 --> 00:05:42,190 If I call that this button submit and then I said and then I generate the Click event sorry. 85 00:05:42,220 --> 00:05:46,240 So if I had renamed it's in the properties which I didn't and I won't. 86 00:05:46,240 --> 00:05:47,750 Since we're this far ahead. 87 00:05:47,770 --> 00:05:55,180 I'm just explaining the concept you had I changed the name to submit or something like Beatty and submit. 88 00:05:55,190 --> 00:05:55,700 Right. 89 00:05:55,750 --> 00:06:01,380 And then generated the events then I would have gotten Beatty and submit on the score click. 90 00:06:01,480 --> 00:06:04,750 So whatever the name of the control is on the score. 91 00:06:04,750 --> 00:06:05,980 The type of events. 92 00:06:05,980 --> 00:06:10,890 That's the naming convention that will always be used when generating these method stops. 93 00:06:10,900 --> 00:06:11,740 All right. 94 00:06:11,740 --> 00:06:19,420 And then the it is taking to two parameters object sender and event args e I'm not going to get into 95 00:06:19,420 --> 00:06:23,180 what those mean at least not yet as you go along you see their purpose. 96 00:06:23,220 --> 00:06:27,430 But right now what I want to do is display some form of message to see. 97 00:06:27,430 --> 00:06:29,650 Thank you for submitting your information. 98 00:06:29,680 --> 00:06:41,390 So I have a simple message box in C sharp so I can see a message box dot it is a method called Sure. 99 00:06:41,560 --> 00:06:45,160 So if you're familiar with the console or right line it's very similar. 100 00:06:45,160 --> 00:06:45,720 Console. 101 00:06:45,750 --> 00:06:45,940 Right. 102 00:06:45,970 --> 00:06:52,930 Land rights to the console message box that show shows a message box with a message in it and that message 103 00:06:52,930 --> 00:06:54,500 has to be a string. 104 00:06:54,580 --> 00:06:54,880 Right. 105 00:06:54,880 --> 00:06:57,370 So what is the message you want to display. 106 00:06:57,370 --> 00:06:58,420 You just see. 107 00:06:58,420 --> 00:07:01,460 Thank you for branding. 108 00:07:01,530 --> 00:07:01,810 All right. 109 00:07:01,810 --> 00:07:03,360 So let's just leave it at that. 110 00:07:03,370 --> 00:07:04,910 Thank you for anything for now. 111 00:07:04,950 --> 00:07:08,710 Let's just see how these methods work or this clicking event. 112 00:07:08,740 --> 00:07:11,590 So when I click Start All right. 113 00:07:11,600 --> 00:07:13,690 And then I fill out my form. 114 00:07:13,760 --> 00:07:17,340 So I'm just put a random date US type of car. 115 00:07:17,480 --> 00:07:20,830 It's oriented on the first then it's going back Monday. 116 00:07:20,930 --> 00:07:22,520 And then I click submit. 117 00:07:22,610 --> 00:07:24,370 Then you will see the message box. 118 00:07:24,380 --> 00:07:25,770 Thank you for anything. 119 00:07:25,760 --> 00:07:26,090 All right. 120 00:07:26,090 --> 00:07:29,820 So that's what happened when I clicked then he'd call the phone son. 121 00:07:29,870 --> 00:07:36,080 So that's the event because the phone son is there but notice it didn't fire until the click happened. 122 00:07:36,080 --> 00:07:40,700 All right so that's the core feature of events driven programming. 123 00:07:40,700 --> 00:07:44,220 So no I can inject that takes coming from the textbook. 124 00:07:44,240 --> 00:07:49,080 So I'm going to use interpolation and do a little concatenation here. 125 00:07:49,130 --> 00:07:55,610 So I'm going to put a dollar sign before the string and then inside the string I'm just going to inject. 126 00:07:55,970 --> 00:07:58,520 I want the text from the text box. 127 00:07:58,520 --> 00:08:05,520 What's the name of the text box remember that we renamed the text box to be TV customer names. 128 00:08:05,530 --> 00:08:11,270 So when I want to make reference to that control I just need to make reference the name of the control 129 00:08:11,510 --> 00:08:13,490 TV that customer need. 130 00:08:13,760 --> 00:08:19,430 They'll be that close to my name if I hover over it you see that it is a text box that's it's a class 131 00:08:19,430 --> 00:08:20,400 type. 132 00:08:20,400 --> 00:08:20,880 Right. 133 00:08:20,960 --> 00:08:25,820 But in a room with that these are objects of type whatever control they are. 134 00:08:25,850 --> 00:08:33,680 So this is an object of type text box and it has all of these properties the property that gives me 135 00:08:33,680 --> 00:08:39,040 the data that was entered into the text box would be text. 136 00:08:39,050 --> 00:08:39,320 All right. 137 00:08:39,320 --> 00:08:40,860 So there is that takes property. 138 00:08:40,880 --> 00:08:47,080 It's we didn't fill it all it's because well you don't want takes the B instead of your textbooks at 139 00:08:47,090 --> 00:08:47,910 the start. 140 00:08:47,990 --> 00:08:51,450 But then once I do use I have enter text into the text box. 141 00:08:51,530 --> 00:08:52,880 Then you want to text from it. 142 00:08:52,910 --> 00:08:54,620 So we need to see. 143 00:08:54,610 --> 00:08:57,050 We want to be customer name. 144 00:08:57,050 --> 00:08:58,620 That's our text box control. 145 00:08:58,800 --> 00:09:01,380 Dot the property text. 146 00:09:01,430 --> 00:09:07,160 So this will give us the text that was entered into the text box during runtime. 147 00:09:07,160 --> 00:09:08,360 So let's try that again. 148 00:09:08,360 --> 00:09:25,300 So I want to click start and then I'm going to see B Gil Walters and The Abigail Walter Walters spelling 149 00:09:25,600 --> 00:09:26,050 sorry. 150 00:09:26,410 --> 00:09:26,650 All right. 151 00:09:26,650 --> 00:09:31,510 Abigail Walter Walters and then I click submit and then there we go. 152 00:09:31,510 --> 00:09:35,540 So we have the message box showing thank you. 153 00:09:35,590 --> 00:09:37,070 Thank you printing. 154 00:09:37,090 --> 00:09:38,850 Thank you for pointing. 155 00:09:38,860 --> 00:09:39,230 All right. 156 00:09:39,230 --> 00:09:41,990 So I can just modify all of that anyway. 157 00:09:42,030 --> 00:09:44,750 So thank you for printing such poor English. 158 00:09:44,750 --> 00:09:46,590 I apologize. 159 00:09:46,660 --> 00:09:53,860 Then I can just say call on and the customer name that was entered into the text box art. 160 00:09:54,250 --> 00:09:55,180 So that is it. 161 00:09:55,180 --> 00:09:59,790 So I'm going to put our break point on this line just so we can see exactly what's happening. 162 00:09:59,800 --> 00:10:00,830 So when I click. 163 00:10:00,830 --> 00:10:02,950 Line for me line 20. 164 00:10:02,950 --> 00:10:04,150 Might be a different line for you. 165 00:10:04,240 --> 00:10:10,810 I the name off the method or the line that the method definition starts on kicking in. 166 00:10:10,810 --> 00:10:20,440 This isn't creepy in between the leftmost being and the line the code line numbers and then that little 167 00:10:20,440 --> 00:10:21,550 red dots will appear. 168 00:10:21,580 --> 00:10:25,840 So that's a debug or a breakpoint rather and then I click Start. 169 00:10:26,170 --> 00:10:30,970 So what happens is that this breakpoint is going to get hit under certain circumstances. 170 00:10:30,970 --> 00:10:36,070 So for as long as the program is running the breakpoint isn't being kids who are doing all of these 171 00:10:36,070 --> 00:10:40,120 things the very point isn't being hit until we hit submit and then we see that. 172 00:10:40,120 --> 00:10:40,540 Okay. 173 00:10:40,540 --> 00:10:42,610 That is where it really calls a function. 174 00:10:42,610 --> 00:10:44,950 It pauses in execution. 175 00:10:44,950 --> 00:10:49,470 So once you see that yellow arrow it's pointing to the line that it's no at. 176 00:10:49,780 --> 00:10:55,630 And if we sit down and take some time to assess what's going on here when we're in debug mode we can 177 00:10:55,630 --> 00:10:58,000 actually see what's inside our variables. 178 00:10:58,000 --> 00:11:04,870 So if we hover over a center you'll see that sender is telling us that it was some submit some some 179 00:11:05,020 --> 00:11:10,870 subnets are some control with the text submit sent the call to this event. 180 00:11:10,870 --> 00:11:11,200 Right. 181 00:11:11,450 --> 00:11:13,960 And if you look in the e you see some other stuff. 182 00:11:13,960 --> 00:11:19,930 Once again I'm not going to get too much into what all of those mean but the fact is that visual studio 183 00:11:19,930 --> 00:11:25,920 allows us to pause our code in execution you know go line by line and see something. 184 00:11:25,920 --> 00:11:28,330 So in here you're running into program. 185 00:11:28,620 --> 00:11:33,160 You know that logic arrows or something like that I just want to see exactly where your mistake was. 186 00:11:33,160 --> 00:11:38,590 You can use these breakpoints again a pause and step through I won't go through the step through just 187 00:11:38,590 --> 00:11:43,810 yet but I'm just going to remove the breakpoint so just by clicking back where the red circle was that 188 00:11:43,810 --> 00:11:45,190 turns its on and off. 189 00:11:45,370 --> 00:11:51,430 And then I can just click continue and then it will continue with the execution and then it says thank 190 00:11:51,430 --> 00:11:57,950 you for pointing and whatever and then text was entered into user into the customer name. 191 00:11:58,240 --> 00:12:03,940 So following that principle I want you to stop this video or right. 192 00:12:03,940 --> 00:12:04,600 No. 193 00:12:04,720 --> 00:12:13,810 And then go ahead and rename the controls and then try and produce a message box that print so the contents 194 00:12:13,840 --> 00:12:22,780 of each of these controls and so you would have something like order newer into customer name is this 195 00:12:22,840 --> 00:12:27,520 the date or intent is that the date returned is that and the type of car and that is that. 196 00:12:27,700 --> 00:12:30,700 And that's what I expect to see in your message box. 197 00:12:30,760 --> 00:12:30,970 All right. 198 00:12:31,000 --> 00:12:36,430 So I hope you at least pause the video and attempted what I'm going to walk you through changes that 199 00:12:36,430 --> 00:12:46,230 I just made so I continued and I renamed my controls so I changed my date picker daytime picker to DTA 200 00:12:46,300 --> 00:12:51,910 rented I call so that data and did I choose the DTA entered the 1 4 date returned. 201 00:12:51,910 --> 00:12:53,560 I said DTA returned. 202 00:12:53,560 --> 00:12:58,210 So if you didn't do it and you want to follow along just you know you can follow along just pause as 203 00:12:58,210 --> 00:13:05,350 you need to go along for the combo box I changed it to CB type of car. 204 00:13:05,380 --> 00:13:09,610 So once again I have the prefix for the type of the control and then the name. 205 00:13:10,180 --> 00:13:18,310 So CB full combo box D for daytime TV for a box I mean it's up to you I'm not telling you to use those 206 00:13:18,310 --> 00:13:25,120 prefixes exactly you can choose your own just a humble suggestion that will help you along the way. 207 00:13:25,120 --> 00:13:25,720 All right. 208 00:13:25,750 --> 00:13:32,200 And then I modified my submit button so let's look at some of the code I wrote in the submit and you'll 209 00:13:32,200 --> 00:13:36,930 see some very different code and I'm going to walk you through exactly what's happening here. 210 00:13:37,030 --> 00:13:50,740 So I like that I am able to generate variable and then store the value from the control inside the variable 211 00:13:50,910 --> 00:13:56,800 know that vantage for that for me is that when I have it in a variable I can do anything I want. 212 00:13:56,830 --> 00:14:02,170 So it's easier to manipulate when I puts it in a variable than to be writing if I needed to write the 213 00:14:02,170 --> 00:14:07,150 text five more times after it has been entered in into the text box. 214 00:14:07,180 --> 00:14:11,860 I don't want to be seeing TV that takes TV customer name that takes every time. 215 00:14:11,890 --> 00:14:18,130 So if I put in a nice convenient variable I can use this variable along the way and do any other computation 216 00:14:18,130 --> 00:14:18,580 I want. 217 00:14:18,610 --> 00:14:24,470 So my humble suggestion is that for each control that you're going to be taking data from. 218 00:14:24,520 --> 00:14:30,820 You have a corresponding variable to accept it and then you can manipulate the data through the variable 219 00:14:30,850 --> 00:14:32,020 as you wish. 220 00:14:32,020 --> 00:14:32,460 All right. 221 00:14:32,560 --> 00:14:40,000 So I have string UserName collecting the text for the user name text box I have string dates all it 222 00:14:40,030 --> 00:14:46,340 and then look at what I'm doing here and also the the date time picker is going to be bringing back 223 00:14:46,350 --> 00:14:55,060 the value of type of date time but I intend to print a string to screen so I can't put the time on into 224 00:14:55,060 --> 00:15:02,230 the string just as easily so I have to do all type conversion where I just see the string so I'm getting 225 00:15:02,410 --> 00:15:07,670 the value which would have been whatever is set inside of the text box or the date time speaker. 226 00:15:07,810 --> 00:15:12,410 That's the date and then I'm just seeing Give me the date as a string. 227 00:15:12,410 --> 00:15:13,740 Now there is much more we can do. 228 00:15:13,750 --> 00:15:15,710 What I'm going to keep it simple right. 229 00:15:15,710 --> 00:15:25,150 No I do the same for beats in string date in and then I say D2 returned value and then I say to string 230 00:15:25,150 --> 00:15:35,400 some converting these two data values into strings so that I can print them knowing the fourth line. 231 00:15:35,440 --> 00:15:40,360 I have a different variable type that we have never looked at or at I haven't looked at with you. 232 00:15:40,360 --> 00:15:42,790 And that is called var. 233 00:15:42,790 --> 00:15:44,620 No this is not really a data type. 234 00:15:44,620 --> 00:15:46,580 This is not a data type a tall. 235 00:15:46,810 --> 00:15:56,350 Var is like it is just like an agnostic declaration that we can use on a variable and then this variable 236 00:15:56,410 --> 00:15:59,860 will be relative to whatever is being assigned to it. 237 00:15:59,890 --> 00:16:01,860 So let me just make some space between them. 238 00:16:01,870 --> 00:16:05,600 So notice for every other one I said this is supposed to be a string. 239 00:16:05,620 --> 00:16:07,050 So we know it's a string. 240 00:16:07,090 --> 00:16:09,640 As we look at it we know that these are strings. 241 00:16:09,640 --> 00:16:15,760 When I say var I am seeing var because I am not sure what kind of value would be put into it. 242 00:16:15,850 --> 00:16:24,850 So I can declare a variable as var and then if I signed the number one to this then car type becomes 243 00:16:24,850 --> 00:16:25,540 an integer. 244 00:16:25,540 --> 00:16:26,580 See there. 245 00:16:26,710 --> 00:16:30,500 So I said var but then I said car type is equal to 1. 246 00:16:30,520 --> 00:16:36,010 It is not an integer so it knows that one is an integer so the variable are the the the variable type 247 00:16:36,010 --> 00:16:41,830 is not an integer if I say at one point one which you noisy that Dobler floats and I hover No it's a 248 00:16:41,830 --> 00:16:42,290 double. 249 00:16:42,490 --> 00:16:47,480 So if I send a string then car type is not a string. 250 00:16:47,480 --> 00:16:52,160 All right so the point is that VAR is a very very very very I like. 251 00:16:52,230 --> 00:16:58,530 I actually love using virus so much that it took me a while to remember that I can write the word string 252 00:16:58,560 --> 00:17:05,790 so VAR is very very convenient very flexible you can use it if you wish you will cut down the time of 253 00:17:05,790 --> 00:17:11,650 trying to figure out what data type your variables are your object needs to begin to see var give you 254 00:17:11,650 --> 00:17:16,350 10 name equals and whatever you assign to it it just knows that that is the data type it's working with 255 00:17:16,350 --> 00:17:17,450 that that moment right. 256 00:17:17,910 --> 00:17:19,500 So that's very convenient. 257 00:17:19,500 --> 00:17:23,200 So I just use this opportunity to introduce that to. 258 00:17:23,310 --> 00:17:31,950 So I said var car type is equal to the combo box which I call the CB type of car dot selected item because 259 00:17:31,950 --> 00:17:36,060 I want that when you select the one from the droplets that's the one I'm interested in getting back 260 00:17:36,390 --> 00:17:41,500 and then I have to do a two string because selected item is a type of object. 261 00:17:41,670 --> 00:17:49,140 So then I have to see convert that to string and then it gives me the string value of whatever was selected 262 00:17:49,500 --> 00:17:54,840 and then with all of that done I can no say message box. 263 00:17:54,840 --> 00:17:57,700 So this is the ultimate objective message box. 264 00:17:57,700 --> 00:17:59,090 Sure. 265 00:17:59,100 --> 00:18:08,370 And what I'm going to be showing is I just use my interpolation and read my nice paragraph someone to 266 00:18:08,370 --> 00:18:12,600 say something like customer name. 267 00:18:12,750 --> 00:18:13,540 Hold on. 268 00:18:13,600 --> 00:18:17,920 And then instead of having to write TV custom one named Tex. 269 00:18:17,930 --> 00:18:25,440 I can just see customer name because I stored the value from the text box inside of this variable. 270 00:18:25,590 --> 00:18:26,050 All right. 271 00:18:26,410 --> 00:18:30,580 And then I can do a line break here. 272 00:18:30,580 --> 00:18:34,090 So what I want is each value in its own line. 273 00:18:34,090 --> 00:18:40,890 So to do that in C sharp in a string have to do something like that and box. 274 00:18:41,010 --> 00:18:42,980 Ah so this is the break. 275 00:18:43,000 --> 00:18:47,280 This is so I get that break is almost the cost of a name enter. 276 00:18:47,320 --> 00:18:52,680 Then the next bit of information intense each time you see this it's that can enter key for Assad. 277 00:18:52,720 --> 00:18:55,890 So cluster my name in one line that I break line. 278 00:18:55,960 --> 00:19:01,420 Then I can press enter and it will automatically just adjust the string to allow me to continue typing 279 00:19:01,420 --> 00:19:05,730 so I'm doing this because I don't want to type too much to the right and off the screen. 280 00:19:05,890 --> 00:19:14,470 So I have customer name and then I'm injecting the variable and then I have beat or entered colon and 281 00:19:14,470 --> 00:19:17,750 then I'm going to inject the variable beat out. 282 00:19:17,860 --> 00:19:19,540 All right then I'm going to break again. 283 00:19:19,540 --> 00:19:25,630 So to me at this fast I'm just going to copy this set off the to at the every time break it to the next 284 00:19:25,630 --> 00:19:28,710 line and then they'd returned 285 00:19:32,000 --> 00:19:36,830 colon and then this would be beat in all right. 286 00:19:36,840 --> 00:19:38,950 And then say I didn't write it properly. 287 00:19:39,000 --> 00:19:43,920 So case matters very very much reclined again. 288 00:19:43,920 --> 00:19:48,920 And then the card type all right. 289 00:19:48,950 --> 00:19:54,900 And then we inject the variable which is car type. 290 00:19:55,050 --> 00:19:55,990 All right. 291 00:19:56,070 --> 00:19:56,700 And then. 292 00:19:56,700 --> 00:20:01,740 So the expectation though is that when we fill out our form and that we click Submit we're supposed 293 00:20:01,740 --> 00:20:04,280 to see all this information. 294 00:20:04,330 --> 00:20:13,970 And let me just add one more line which just is thank you for your knees. 295 00:20:14,220 --> 00:20:15,280 All right. 296 00:20:15,290 --> 00:20:16,710 So let's try that. 297 00:20:16,710 --> 00:20:19,050 So I press start. 298 00:20:19,050 --> 00:20:19,340 All right. 299 00:20:19,350 --> 00:20:24,110 So I have customer name test in third day or and it is Saturday. 300 00:20:24,120 --> 00:20:28,960 For one day to be returned is the fourth and a type of cars a lotta. 301 00:20:28,980 --> 00:20:34,610 And then I click submit and then there we go we have customer name the texture of the text box we have 302 00:20:34,620 --> 00:20:41,120 the date printed and the date and time date and time the car type is Lada. 303 00:20:41,280 --> 00:20:44,400 And then the thank you notes ha. 304 00:20:44,430 --> 00:20:50,610 So that's all we go about getting information from our farm and well manipulating it thereafter. 305 00:20:50,610 --> 00:20:57,630 So this manipulation is really just to present it's the manipulation could be to you know do our computation 306 00:20:57,630 --> 00:20:59,420 on the values that are there. 307 00:20:59,550 --> 00:21:03,880 It could be that we submitted to the database whatever it is the fact is. 308 00:21:03,960 --> 00:21:05,780 We know how to get the information. 309 00:21:05,790 --> 00:21:12,780 So later on we look at how we add things like validation and all the features like sending into the 310 00:21:12,780 --> 00:21:13,560 database.