Показать сообщение отдельно
Старый 13.03.2013, 13:55   #3  
probka is offline
probka
Участник
Аватар для probka
 
98 / 11 (1) +
Регистрация: 20.02.2012
Адрес: Ростов-на-Дону
Цитата:
Сообщение от a33ik Посмотреть сообщение
Покажите пожалуйста кусок кода плагина, где вы объявляете _currentContext, где присваиваете значение.
X++:
public abstract class PluginBase : IPlugin
    {
        protected DynamicEntity _preEntityImage = null;
        protected DynamicEntity _entity = null;
        protected Moniker _moniker = null;
        protected DynamicEntity _postEntityImage = null;

        protected string _secureInformation;
        protected string _unsecureInformation;
        protected IPluginExecutionContext _currentContext;

        public PluginBase(string unsecureInfo, string secureInfo)
        {
            _unsecureInformation = unsecureInfo;
            _secureInformation = secureInfo;

        }

        public virtual void Execute(IPluginExecutionContext context)
        {
            _currentContext = context;

        }

    }
__________________
Так победим!