aboutsummaryrefslogtreecommitdiff
path: root/src/AddIn/Functions.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-12-20 12:27:47 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-12-20 12:27:47 +0300
commit73569a43644309d0342817580bcfd86c1face5b8 (patch)
treef3c6e15db82130b02ec8c3fa1b64674e6a9cf48d /src/AddIn/Functions.cs
parent3d186c22e8665b80839495fdcf4b176c2f3e03b9 (diff)
Namespace refactoring
Diffstat (limited to 'src/AddIn/Functions.cs')
-rw-r--r--src/AddIn/Functions.cs31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/AddIn/Functions.cs b/src/AddIn/Functions.cs
deleted file mode 100644
index 5bcfd45..0000000
--- a/src/AddIn/Functions.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using ExcelDna.Integration;
-using System;
-
-namespace RhSolutions
-{
- public class Functions
- {
- [ExcelFunction(Description = "Запрос в удаленную базу данных")]
- public static object RHSOLUTIONS([ExcelArgument(Name = "Запрос")] string line)
- {
- object result;
-
- result = ExcelAsyncUtil.Run("Database request", line, delegate
- {
- return RhDatabaseClient.GetProduct(line).GetAwaiter().GetResult();
- });
-
- if (result == null)
- {
- return ExcelError.ExcelErrorNA;
- }
-
- if (result.Equals(ExcelError.ExcelErrorNA))
- {
- return "Загрузка...";
- }
-
- return result;
- }
- }
-} \ No newline at end of file