Created
July 30, 2012 00:02
-
-
Save toddpi314/3202703 to your computer and use it in GitHub Desktop.
Lightning_ViewModelLocator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using LightningMVC.Common.Container; | |
using Views; | |
namespace LightningMVC.Views | |
{ | |
public class ViewModelLocator | |
{ | |
public static CoreViewModel Locate(string view) | |
{ | |
return IoC.Instance.Get(Type.GetType("LightningMVC.Views." + view + "." + view + "ViewModel")) as CoreViewModel; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment