Jump to content


Photo

MVP - PassiveView pattern samples for uniGUI

MVP PassiveView

  • Please log in to reply
4 replies to this topic

#1 quanliking

quanliking

    Member

  • uniGUI Subscriber
  • PipPip
  • 10 posts
  • LocationYueqing city, zhejiang province NingKang east road no. 98

Posted 17 January 2018 - 01:09 PM

:) For you guys like MVP pattern, welcome to improve the samples below and add more uniGUI components. Only realize UniEdit and UniComboBox components.

 

References:

Eduardo:

http://forums.unigui...-vclfmx/?hl=mvp

 

Daniele Teti's programming blog:

http://www.danielete...n-patterns/mvp/

 

Complied with:

Embarcadero® Delphi 10.2 Version 25.0.29039.200

uniGUI Web Application Framework Version:1.0.2 build 1431
 
 
 
 

 

 

Attached Files


  • 0

#2 eric

eric

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 122 posts

Posted 17 January 2018 - 05:23 PM

Very very good, Thx.

Do you plan to create all the components interfaces ?

 

thx

 

eric


  • 0

#3 quanliking

quanliking

    Member

  • uniGUI Subscriber
  • PipPip
  • 10 posts
  • LocationYueqing city, zhejiang province NingKang east road no. 98

Posted 20 January 2018 - 03:52 AM

Hi Eric,

 

First,sorry I am not pro in design patterns and amateur in uniGUI, if I have time I will try to create more components interfaces.

 

I am also studying MVVP in Delphi and will provide sample code for uniGUI soon.

 

There is too many MVC, MVP, MVVM...frameworks, each has its Pros and Cons,hard to select, I wish everyone find a framework fit his/her need and make life easy.


  • 0

#4 majori

majori

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 129 posts

Posted 20 January 2018 - 11:36 AM

This same based on IORM & MVVM Open Sourse

https://github.com/m...ramework/uniGUI


  • 0

#5 quanliking

quanliking

    Member

  • uniGUI Subscriber
  • PipPip
  • 10 posts
  • LocationYueqing city, zhejiang province NingKang east road no. 98

Posted 22 February 2018 - 06:08 PM

This same based on IORM & MVVM Open Sourse

https://github.com/m...ramework/uniGUI

 

Thanks Majori, iORM looks great and in active development.

Few MVVM for delphi framework give uniGUI samples, they only provide VCL/FMX. So we have difficult to test with uniGUI.

 

iORM:

MVVM support components

Dependency Injection Container

...

 

Samples:

https://github.com/m...ramework/uniGUI

https://github.com/m...ramework/uniGUI

https://github.com/m...k/uniGUI_mobile

...

 

I am happy to learn it.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users