public ShellViewModel(IEventAggregator eventAggregator, IUnityContainer container) {
   _eventAggregator = eventAggregator;
   _container = container;
   _eventAggregator.GetEvent<SetIsBusyEvent>().Subscribe(SetBusy);
   _eventAggregator.GetEvent<SetBusyMessageEvent>().Subscribe(SetBusyMessage);
   _eventAggregator.GetEvent<SetDebugWindowVisibilityEvent>().Subscribe(SetDebugWindowVisibilityCheckMark);
   ShowSettingsCommand = new DelegateCommand(ShowSettings);
   ShowDebugWindowCommand = new DelegateCommand(ShowDebugWindow);
   var appSettings=ConfigurationManager.AppSettings;
   if (appSettings[0]!="true")
     return;
   ShowDebugWindow();
 }
 public SettingWindowViewModel(IChildWindow childWindow,IEventAggregator eventAggregator, IGlobalParametersService globalParametersService, IUnityContainer container, ILogService logService) {
   _eventAggregator = eventAggregator;
   _globalParametersService = globalParametersService;
   _container = container;
   _logService = logService;
   _childWindow = childWindow;
   NewSettings = new Settings();
   OkCommand=new DelegateCommand(Ok);
   CancelCommand=new DelegateCommand(Cancel);
   FolderSelectCommand=new DelegateCommand(FolderSelect);
   ErrorVisibility = Visibility.Collapsed;
   ErrorMessage = string.Empty;
   OnLoadCommand = new DelegateCommand(OnLoad);
 }