Jump to content
uniGUI Discussion Forums
quanliking

MVP - PassiveView pattern samples for uniGUI

Recommended Posts

:) 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.com/index.php?/topic/4151-tms-aurelius-livebinding-unigui-vclfmx/?hl=mvp

 

Daniele Teti's programming blog:

http://www.danieleteti.it/category/programming/design-patterns/mvp/

 

Complied with:

Embarcadero® Delphi 10.2 Version 25.0.29039.200

uniGUI Web Application Framework Version:1.0.2 build 1431
 
 
 
 

 

 

MVP.rar

post-3992-0-93074000-1516194288_thumb.jpg

Share this post


Link to post
Share on other sites

Very very good, Thx.

Do you plan to create all the components interfaces ?

 

thx

 

eric

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

 

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/mauriziodm/iORM/tree/master/Samples/BOM_MVVM_CrossFramework/uniGUI

https://github.com/mauriziodm/iORM/tree/master/Samples/PhoneContacts_MVVM_CrossFramework/uniGUI

https://github.com/mauriziodm/iORM/tree/master/Samples/PhoneContacts_MVVM_CrossFramework/uniGUI_mobile

...

 

I am happy to learn it.

Share this post


Link to post
Share on other sites

×