CRUD with MVP pattern, C#, WinForms and SQL Server - Part 2/3

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น •

  • @karobatti
    @karobatti ปีที่แล้ว

    Köszönjük!

  • @dcp15121980
    @dcp15121980 2 ปีที่แล้ว +6

    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

  • @exogendesign4582
    @exogendesign4582 2 ปีที่แล้ว +1

    It's Official You're the god of Winforms.

    • @fbsouza
      @fbsouza 2 ปีที่แล้ว

      I agree.

  • @johnlauro6498
    @johnlauro6498 2 ปีที่แล้ว +2

    why this kind of code is so satisfying?

  • @jessicawong1536
    @jessicawong1536 2 ปีที่แล้ว +2

    Great! looking forward to section 3/3

  • @YuraD95
    @YuraD95 2 ปีที่แล้ว

    this code is so clean, hopefully one day ill get there

  • @NTDairy
    @NTDairy 2 ปีที่แล้ว +1

    part 3/3 soon. thank sir.

  • @kanifflin
    @kanifflin 2 ปีที่แล้ว +1

    Clear explanation

  • @AhmadElkhouly
    @AhmadElkhouly ปีที่แล้ว

    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?

  • @assortedgoods7204
    @assortedgoods7204 ปีที่แล้ว +1

    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.

    • @earthlingz
      @earthlingz ปีที่แล้ว

      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?

  • @blackcamce6566
    @blackcamce6566 2 ปีที่แล้ว +1

    Me perdi en el otro aver que sigue soy el primero :3

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 ปีที่แล้ว +1

      😂, bueno gracias, y felicidades por ser el primero 😎

  • @christopherkuizon6381
    @christopherkuizon6381 2 ปีที่แล้ว +1

    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.

    • @kwstaslalaounis3212
      @kwstaslalaounis3212 ปีที่แล้ว

      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();

  • @abmtechnologies
    @abmtechnologies 2 ปีที่แล้ว

    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

  • @joaopedromarques8232
    @joaopedromarques8232 2 ปีที่แล้ว +1

    Waiting for part 3 :D when does it come out?

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 ปีที่แล้ว +1

      Soon....Maybe in about 3 days 👍

    • @joaopedromarques8232
      @joaopedromarques8232 2 ปีที่แล้ว +1

      @@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.

  • @blackcamce6566
    @blackcamce6566 2 ปีที่แล้ว +1

    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

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 ปีที่แล้ว +1

      Que extraño, talvez no cambiaste el nombre como lo hice. Bueno, no hay problema como lo hiciste, al menos funciona :v

  • @魔獸-h3d
    @魔獸-h3d 2 ปีที่แล้ว

    Does the Gridview ScrollBar use any components? Thank sir.

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 ปีที่แล้ว

      Sorry, I'm afraid I didn't understand your question.

  • @TuanTran-persistTuan
    @TuanTran-persistTuan 6 หลายเดือนก่อน

    I am not understand, why in method showPetView of Mainview, you do not use function show to display form, please i need help🥺🥺

  • @tdtidpeek
    @tdtidpeek 2 ปีที่แล้ว

    How to change from Form_PetView to UserControl_PetView and show to add to panel?

  • @khanguyenviet6821
    @khanguyenviet6821 ปีที่แล้ว

    how to I can display PetView in a panel of MainView

  • @ChrisKuizon-r8v
    @ChrisKuizon-r8v ปีที่แล้ว

    i wish you can make a tutorial using c# mvp with unity container for the views

  • @naedlorenzo3848
    @naedlorenzo3848 2 ปีที่แล้ว +1

    I tried this and my datagridview not doing filter while I am typing in my searchbar LOL, cant figure it out.

    • @naedlorenzo3848
      @naedlorenzo3848 2 ปีที่แล้ว

      it is doing the search now, but the keydown on search bar is not working I have to press the enter. Crazy, LOL

    • @exogendesign4582
      @exogendesign4582 2 ปีที่แล้ว

      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
      @naedlorenzo3848 2 ปีที่แล้ว

      @@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.

    • @exogendesign4582
      @exogendesign4582 2 ปีที่แล้ว

      @@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.

    • @naedlorenzo3848
      @naedlorenzo3848 2 ปีที่แล้ว

      @@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 :)

  • @fbsouza
    @fbsouza 2 ปีที่แล้ว

    Muito bom!