WEBVTT 00:00.450 --> 00:01.160 Welcome back. 00:01.240 --> 00:06.780 Now in this lecture let us talk about menu to exclude anything related to menu. 00:06.780 --> 00:13.350 We need to import menu from our control module so all you need to do is use menu and that would be the 00:13.350 --> 00:16.710 first step towards adding a navigation map. 00:16.740 --> 00:20.610 The second thing is let me create a function and add a structure to it. 00:20.810 --> 00:26.160 So in what few methods are the normal few function and everything would be inside that method. 00:26.160 --> 00:29.220 So it would be quite easy for us to demonstrate that. 00:29.780 --> 00:35.000 So just create a function called AB navigation. 00:35.770 --> 00:41.500 The first thing I need to do is I need to take out a variable I would call it as menu and then I need 00:41.500 --> 00:43.900 to use menu method that I have imported. 00:43.900 --> 00:53.390 So this is menu class and here I need to pass my route that has my bio crypto. 00:53.450 --> 00:57.560 Remember this is a structure that we need to follow to our menu. 00:57.560 --> 01:00.390 Now on standards done I need to create the item. 01:00.680 --> 01:01.870 So what would be item. 01:01.930 --> 01:04.830 So item would be like if I have file. 01:04.910 --> 01:06.020 So that is an item. 01:06.020 --> 01:08.330 If I have added that as an item. 01:08.330 --> 01:14.170 So if you talk about any application if you talk about anything so they have different items. 01:14.210 --> 01:16.200 So let me create the item here. 01:16.520 --> 01:18.140 I recorded this file item 01:23.720 --> 01:30.670 and we need to boss out a menu had once that is done now everything I need to add are all the different 01:30.670 --> 01:33.340 matters that I need to add in my file. 01:33.640 --> 01:36.130 That is my file option my file item. 01:36.130 --> 01:41.680 I need to use a command call I'd command and then give it a label. 01:41.680 --> 01:43.670 So I need to add a different menu. 01:43.720 --> 01:52.090 Maybe the first menu would be clear all the second menu would be closer to the clear portfolio and close 01:52.090 --> 01:52.410 up. 01:52.950 --> 01:58.050 So let me use a label. 01:58.120 --> 02:04.000 The second thing we are going to lose I need to use my menu and then add cascade and then give it a 02:04.000 --> 02:04.380 name. 02:04.390 --> 02:06.800 So I need to give a name for this item. 02:07.460 --> 02:14.610 Pass out the label and which I need to give the name I would call it s file and to Richmond new that 02:14.610 --> 02:19.250 would be my file item. 02:19.710 --> 02:23.740 Once that is done I just need to configure it with my menus. 02:23.820 --> 02:25.280 So this is quite confusing. 02:25.280 --> 02:25.900 Don't worry. 02:25.920 --> 02:31.590 Before ending this lecture I would be clearing all the notes so use my windows. 02:31.590 --> 02:34.440 That is my bio crypto and then use my configuration 02:37.920 --> 02:38.810 if that is done. 02:38.960 --> 02:40.650 I hope this looks fine. 02:40.670 --> 02:42.080 Let me run this one. 02:43.580 --> 02:44.620 OK so I haven't. 02:44.720 --> 02:53.910 I did this actually so I just need to add my app now to reset as well as as well as in the mean window. 02:53.930 --> 02:56.980 Let me run this one again. 02:57.000 --> 02:58.170 I have a file auction. 02:58.170 --> 03:02.740 I have a portfolio close up and I want to do nothing. 03:02.740 --> 03:06.720 And if I let you finish anything it's still valid. 03:06.720 --> 03:11.650 We have an option quite clear portfolio and close up but they're doing nothing. 03:11.670 --> 03:17.680 I just need to add a command functionality to them and they would work fine so that's all we need to 03:17.680 --> 03:18.490 add a menu. 03:18.580 --> 03:20.590 Let me revise it one for you. 03:20.590 --> 03:26.710 So we need to take our variable in which we need to pass out our window then use this method to create 03:26.710 --> 03:30.400 an item then this item can be repeated many times. 03:30.470 --> 03:36.760 So in this item I added Claire portfolio close up and then added this item to my main menu and then 03:37.090 --> 03:40.740 name it as the help off label and then configure it. 03:40.780 --> 03:47.860 So if I need to add a second item maybe I need to add edit or maybe I need to add a help so all I have 03:47.860 --> 03:52.500 to do is use this method again. 03:53.040 --> 03:54.450 So it would be help item. 03:54.460 --> 03:55.430 This would be help. 03:55.450 --> 03:58.650 And then all the different type of dropdown menus. 03:58.810 --> 04:00.980 And then here it would be held by them. 04:01.150 --> 04:06.250 And then you can add I told that would be done quite easily. 04:06.250 --> 04:07.960 I hope this was understandable. 04:07.960 --> 04:10.450 I just need to do one simple task. 04:10.450 --> 04:12.270 I need to create two commands. 04:12.340 --> 04:18.550 The first one would be for my clever portfolio in which I will delete all items that are available in 04:18.550 --> 04:19.360 my portfolio. 04:19.360 --> 04:21.850 That is delete them from database. 04:21.850 --> 04:22.900 So I just need to use. 04:22.900 --> 04:27.180 Come on and then call a function call. 04:27.180 --> 04:35.240 Clear all and had I need to use come on and then call a function close up. 04:35.350 --> 04:44.440 Now I need to write these two functions to let me was clear all and write here only so I am clear what 04:44.440 --> 04:48.400 I am going to do is I just need to delete everything from database. 04:48.550 --> 04:54.090 Just use my object execute method delete from coin so that or delete everything. 04:54.160 --> 05:00.660 Then commit that send a message regarding everything is deleted and then all I have to do is etc.. 05:00.690 --> 05:03.850 That is refresh my particular window. 05:03.910 --> 05:05.110 This looks fine. 05:05.110 --> 05:07.360 The next thing is I need to add a function call. 05:07.450 --> 05:07.990 Close up 05:11.100 --> 05:15.460 in this I just need to close my application so I can use this try. 05:15.770 --> 05:19.030 So if you remember to destroy frame use destroy method. 05:19.390 --> 05:21.480 Similarly I need to do with my windows. 05:21.490 --> 05:23.460 All I need to uses my new name. 05:23.470 --> 05:26.600 That is my route and then destroy. 05:27.340 --> 05:28.540 This should work fine. 05:28.690 --> 05:33.320 Let me run my application first and see if I'm getting any error. 05:33.340 --> 05:34.160 No. 05:34.330 --> 05:40.500 And if I go here lose my application that's ok fine from my application again. 05:40.600 --> 05:41.500 Go ahead. 05:41.500 --> 05:43.240 Player portfolio. 05:43.370 --> 05:44.220 OK. 05:44.440 --> 05:45.370 It should refresh. 05:45.370 --> 05:47.440 Now I have a blank portfolio. 05:47.440 --> 05:48.730 Let me add more coins 05:52.050 --> 05:52.840 to coins. 05:53.060 --> 05:55.960 Add this coin coin added again. 05:56.330 --> 05:58.750 It should refresh ya that's done. 05:58.760 --> 06:04.910 So that's how our portfolio application is working and I can literally use this one to track some data 06:05.000 --> 06:11.090 and I can also use more formulas more fields to give me some indication and this looks particularly 06:11.090 --> 06:11.880 fine. 06:11.880 --> 06:16.920 I can also add more menus as I said So this is our portfolio application. 06:17.000 --> 06:23.520 I hope now you understand a lot more about Kanter by tone as well as writing everything from scratch. 06:23.690 --> 06:30.040 We can do a lot more data with this but currently I think this is sufficient as a good basic project 06:30.050 --> 06:33.630 regarding data and I hope you understand about this. 06:33.650 --> 06:40.220 I hope now understandable Kendall a school life database fight on so that's all for this lecture. 06:40.220 --> 06:44.480 I hope this course was helpful for you to start your journey with Kenta. 06:44.660 --> 06:46.340 Thank you for following this course. 06:46.340 --> 06:47.540 See you in the next.