|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wide.Interfaces;
using Wide.Shell;
using Microsoft.Practices.Unity;
using Wide.Splash;
namespace VS2010TestApp
{
class AppBootstrapper : WideBootstrapper
{
public AppBootstrapper(bool isMetro = true) : base(isMetro)
{
}
protected override void InitializeModules()
{
//Register your splash view or else the default splash will load
Container.RegisterType<ISplashView, AppSplash>();
//Register your workspace here - if you have any
Container.RegisterType<AbstractWorkspace, IconWorkspace>(new ContainerControlledLifetimeManager());
// You can also override the logger service. Currently, NLog is used.
// Since the config file is there in the output location, text files should be available in the Logs folder.
//Initialize the original bootstrapper which will load modules from the probing path. Check app.config for probing path.
base.InitializeModules();
//Load the required stuff
//NOTE: this should probably be done from other modules. This is used only for demo purpose.
Loader loader = new Loader(Container);
}
}
}
|
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.
Hello! I'm a 26 year old, WPF/C# self-learned software developer, musician from India with a Master's degree in Computer science. I believe that every piece of software and information/knowledge is available for free for those who seek it.
My projects are available in
my Webpage hosted on Github. I am eager to learn new things everyday, explore new technologies and solve problems.