示例#1
0
 public void AutoOpen()
 {
     // Since we have specified ExplicitRegistration=true in the .dna file, we need to do all registration explicitly.
     // Here we only add the async processing, which applies to our IObservable function.
     ExcelRegistration.GetExcelFunctions()
     .ProcessAsyncRegistrations()
     .RegisterFunctions();
     ExcelRegistration.GetExcelCommands().RegisterCommands();
 }
示例#2
0
        public void RegisterFunctions()
        {
            ExcelRegistration.GetExcelCommands().RegisterCommands();

            /* to walk through which functions are being registered.....
             * int i = 0;
             * List<String> los = new List<string>(0);
             * foreach (ExcelFunctionRegistration f in ExcelRegistration.GetExcelFunctions()) {
             *  los.Add(f.FunctionLambda.ToString());
             *  List<ExcelFunctionRegistration> ief = new List<ExcelFunctionRegistration>();
             *  ief.Add(f);
             *  i++;
             *  ExcelRegistration.RegisterFunctions(ief);
             * }
             */
            ExcelRegistration.GetExcelFunctions().RegisterFunctions();
        }
示例#3
0
 public override IEnumerable <ExcelCommandRegistrationBase> GetExcelCommands()
 {
     return(ExcelRegistration.GetExcelCommands()
            .Select(c => (ExcelCommandRegistrationBase) new ExcelCommandRegistrationWrapper(c)));
 }