コード例 #1
0
 public MainViewModel(Panel pluginElementPanel)
 {
     Storage.Logger.WriteInfo(Resources.Message_Initialization_started);
     var internalBL = new InternalBL(Storage.Logger);
     EditSettingsCommand = new EditSettingsCommand(Storage.Logger);
     ShowBooksCommand = new ShowBookListCommand(Storage.Logger);
     InternalComponentThrowingFileNotFoundCommand = new InternalComponentThrowingFileNotFoundExceptionCommand(internalBL, Storage.Logger);
     InternalComponentThrowingExceptionCommand = new InternalComponentThrowingExceptionCommand(internalBL, Storage.Logger);
     foreach (var plugin in PluginHelper.LoadPlugins(Storage.Logger, ServiceLocator.Get<HumanInteractionService>()))
     {
         pluginElementPanel.Children.Add(UIHelper.CreatePluginUIElement(plugin, Storage.Logger));
     }
     Storage.Logger.WriteInfo(Resources.Message_Initialization_completed);
 }
 public InternalComponentThrowingFileNotFoundExceptionCommand(InternalBL internalBL, ILogger logger)
     : base(internalBL, logger)
 {
 }
コード例 #3
0
 protected InternalComponentCommandBase(InternalBL internalBL, ILogger logger)
     : base(logger)
 {
     InternalBL = internalBL;
 }