예제 #1
0
 public void Register(Initiliser initiliser)
 {
     initiliser.RegisterIoC(this);
     if (_container is null)
     {
         _container = initiliser.BuildRegister();
     }
     else
     {
         throw new InvalidOperationException("Register has already been called and cannot be called a second time.");
     }
 }
예제 #2
0
 /// <summary>
 /// ViewModel to View mappings
 /// </summary>
 /// <param name="initiliser"></param>
 public ViewModelViewMappings(Initiliser initiliser)
 {
     Mappings = new Dictionary <int, ViewMapping>();
     AddMapping(initiliser.Mappings);
 }