示例#1
0
        public OperationHelp(OperationSymbol operationSymbol, CultureInfo ci, OperationHelpEntity entity)
        {
            this.OperationSymbol = operationSymbol;
            this.Culture         = ci;

            this.Info = HelpGenerator.GetOperationHelp(operationSymbol);

            if (entity != null)
            {
                HasEntity = true;

                UserDescription = entity.Description;
            }

            Entity = new Lazy <OperationHelpEntity>(() => HelpLogic.GlobalContext(() =>
            {
                if (entity == null)
                {
                    entity = new OperationHelpEntity
                    {
                        Culture   = this.Culture.ToCultureInfoEntity(),
                        Operation = this.OperationSymbol,
                    }
                }
                ;

                return(entity);
            }));
        }
示例#2
0
 public OperationHelp(OperationSymbol operationSymbol, Type type, string?userDescription)
 {
     this.OperationSymbol = operationSymbol;
     this.Type            = type;
     this.Info            = HelpGenerator.GetOperationHelp(type, operationSymbol);
     this.UserDescription = userDescription;
 }
示例#3
0
        public OperationHelp(OperationSymbol operationSymbol, Type type)
        {
            this.OperationSymbol = operationSymbol;
            this.Type            = type;

            this.Info = HelpGenerator.GetOperationHelp(type, operationSymbol);
        }