示例#1
0
        /// <summary>
        /// The load module template.
        /// </summary>
        private void LoadModuleCommandExecute(ModuleTemplate moduleTemplate)
        {
            _isLoading = true;
            _pleaseWaitService.Show(string.Format(CultureInfo.InvariantCulture, "Starting to load module '{0}'", moduleTemplate.ModuleName));

            new Thread(MonitorThread).Start();
            try
            {
                _moduleManager.LoadModule(moduleTemplate.ModuleName);
            }
            catch (Exception e)
            {
                Log.Error(e);
            }
        }
示例#2
0
 /// <summary>
 /// Can execute the load module command.
 /// </summary>
 /// <param name="moduleTemplate"></param>
 /// <returns></returns>
 private bool LoadModuleCommandCanExecute(ModuleTemplate moduleTemplate)
 {
     return moduleTemplate.State == ModuleState.NotStarted;
 }