|
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
namespace RehostedDesigner.FileSystemManagerModule
{
public class StandardFileSystemManagerModule : IModule
{
readonly IRegionManager _regionManager;
readonly StandardFileSystemManagerView _view;
public StandardFileSystemManagerModule(IRegionManager regionManager, StandardFileSystemManagerView view)
{
this._regionManager = regionManager;
this._view = view;
}
public void Initialize()
{
foreach (var item in this._view.GetItems())
{
object item1 = item;
this._regionManager.RegisterViewWithRegion("StorageRegion", () => item1);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.