Skip to content

Instantly share code, notes, and snippets.

@toddpi314
Created July 30, 2012 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddpi314/3202703 to your computer and use it in GitHub Desktop.
Save toddpi314/3202703 to your computer and use it in GitHub Desktop.
Lightning_ViewModelLocator
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