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(); }
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(); }
public override IEnumerable <ExcelCommandRegistrationBase> GetExcelCommands() { return(ExcelRegistration.GetExcelCommands() .Select(c => (ExcelCommandRegistrationBase) new ExcelCommandRegistrationWrapper(c))); }