Print Page | Close Window

Making PhoneTypeSelectorViewModel more moduler

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3343
Printed Date: 28-Apr-2024 at 10:07am


Topic: Making PhoneTypeSelectorViewModel more moduler
Posted By: JohnBloom
Subject: Making PhoneTypeSelectorViewModel more moduler
Date Posted: 16-Mar-2012 at 2:19pm
This is another question that references TempHire but is more me just thinking about how to move our project over.
 
In TempHire there is a very clean very easy to understand viewmodel called PhoneTypeSelectorViewModel. The only problem I have with it is that it is tied to the IStaffingResourceRepository. It seems like if you were going to have a phonenumber type picker you would want to be able to use it for Customers, Employees, Vendor, ect.
 
We have similar situations and were wondering if there is a way to avoid creating the same view model three times when you really only want to change which repository it looks at.


-------------
-John Bloom



Replies:
Posted By: JohnBloom
Date Posted: 16-Mar-2012 at 2:24pm
By moduler I mean modular. Cant seem to find how to edit my post.

-------------
-John Bloom


Posted By: mgood
Date Posted: 16-Mar-2012 at 3:17pm
Yes, that can be done, for example by using the unit of work pattern.



Print Page | Close Window