I wish this guy came like few years ago with this video. Nowadays it very hard to get windows developers. All look into web development. Anyways excellent work RJ
I have a question: when the view (IPetView) is closed, will its presenter be garbage collected or it will be present in the memory and needs to be disposed?
Hello I am having problem with your singleton. It does the job that only 1 instance can show. but it reassigns the events making the event triggers twice or more. is there any suggestion to prevent this? I use another form as modal to launch the add new pet.
I am experiencing this too. I think its "new PetPresenter(....)" keeps creating new instance and invoking it in an old instance of view. making it keeps duplicating the events and firing it multiple times. I wonder if there is a solution for this singleton without reassigning the events in the constructor of the Presenter...@RJ Code Advance EN any advise?
I tried creating an MVP following the same logic with two form views. However when the button for each correponding view is clicked only one view will be displayed on the mainview and the other view won't.
My friend do this and will run for example we have this.Put this code into the method where you want to show the form . CustomerView customerView = new CustomerView(); ICustomerView view = customerView; ICustomerRepository repository = new CustomerRepository(sqlConnectionString); new CustomerPresenter(view, repository); customerView.Show();
@@RJCodeAdvanceEN Sweet! I tried to adapt a CRUD project I made recently and am having trouble capturing the user input in the presenter class, can't wait to see your solution.
Bueno después de verlo a detalle no me da eso de la cadena de conexión así que le di directo la cadena y recién me dio XD PD: buenardo a ver como funcionara con una base de datos casera :3
It so hard to find problem with this type of pattern, When doing method directly its easier, I also don't get how each methods, interfaces and repositories tangled together. I have created a lot of POS but this is the first Time I encountered this kind of coding. Its so clean but so hard to debug. I re read everything about this stuff through kudvenkat videos it helps a bit :-).
@@naedlorenzo3848 yep, now I finally figured out interfaces, and how to implement orm, I also finally get how to effectively write mvp, but I am now on Wpf and doing mvvm, wpf is way easier than winforms man and you can create beautiful ui using xaml, its way faster to make.
Köszönjük!
I wish this guy came like few years ago with this video. Nowadays it very hard to get windows developers. All look into web development. Anyways excellent work RJ
Thank @Deepchand P
Best regards :)
It's Official You're the god of Winforms.
I agree.
why this kind of code is so satisfying?
Great! looking forward to section 3/3
Thanks :)
this code is so clean, hopefully one day ill get there
part 3/3 soon. thank sir.
Clear explanation
Thanks ;)
I have a question: when the view (IPetView) is closed, will its presenter be garbage collected or it will be present in the memory and needs to be disposed?
Hello I am having problem with your singleton. It does the job that only 1 instance can show. but it reassigns the events making the event triggers twice or more. is there any suggestion to prevent this? I use another form as modal to launch the add new pet.
I am experiencing this too. I think its "new PetPresenter(....)" keeps creating new instance and invoking it in an old instance of view. making it keeps duplicating the events and firing it multiple times. I wonder if there is a solution for this singleton without reassigning the events in the constructor of the Presenter...@RJ Code Advance EN any advise?
Me perdi en el otro aver que sigue soy el primero :3
😂, bueno gracias, y felicidades por ser el primero 😎
I tried creating an MVP following the same logic with two form views. However when the button for each correponding view is clicked only one view will be displayed on the mainview and the other view won't.
My friend do this and will run for example we have this.Put this code into the method where you want to show the form .
CustomerView customerView = new CustomerView();
ICustomerView view = customerView;
ICustomerRepository repository = new CustomerRepository(sqlConnectionString);
new CustomerPresenter(view, repository);
customerView.Show();
thank you sir i still request you sir how to print data into crystal report from local database and set Company name and logo dynamically
Waiting for part 3 :D when does it come out?
Soon....Maybe in about 3 days 👍
@@RJCodeAdvanceEN Sweet! I tried to adapt a CRUD project I made recently and am having trouble capturing the user input in the presenter class, can't wait to see your solution.
Bueno después de verlo a detalle no me da eso de la cadena de conexión así que le di directo la cadena y recién me dio XD
PD: buenardo a ver como funcionara con una base de datos casera :3
Que extraño, talvez no cambiaste el nombre como lo hice. Bueno, no hay problema como lo hiciste, al menos funciona :v
Does the Gridview ScrollBar use any components? Thank sir.
Sorry, I'm afraid I didn't understand your question.
I am not understand, why in method showPetView of Mainview, you do not use function show to display form, please i need help🥺🥺
How to change from Form_PetView to UserControl_PetView and show to add to panel?
how to I can display PetView in a panel of MainView
i wish you can make a tutorial using c# mvp with unity container for the views
I tried this and my datagridview not doing filter while I am typing in my searchbar LOL, cant figure it out.
it is doing the search now, but the keydown on search bar is not working I have to press the enter. Crazy, LOL
It so hard to find problem with this type of pattern, When doing method directly its easier, I also don't get how each methods, interfaces and repositories tangled together. I have created a lot of POS but this is the first Time I encountered this kind of coding. Its so clean but so hard to debug. I re read everything about this stuff through kudvenkat videos it helps a bit :-).
@@exogendesign4582 as I was typing it I don't get it but as soon I am debugging it or decide to add something I am slowly learning it.
@@naedlorenzo3848 yep, now I finally figured out interfaces, and how to implement orm, I also finally get how to effectively write mvp, but I am now on Wpf and doing mvvm, wpf is way easier than winforms man and you can create beautiful ui using xaml, its way faster to make.
@@exogendesign4582 Oh that is nice. I never been into wpf. Looks like you are trying to introduce me to wpf might as well share your code :)
Muito bom!