From 7905d3af4d32405ef041de897bf2d23ee7d6d08e Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 14 Jun 2023 15:23:33 +0300 Subject: [PATCH] Add custom panel and tools --- Controllers/RibbonController.cs | 30 ++++++++++++++++++++++++++++++ ExcelAddIn.csproj | 2 ++ Tools/Button1Tool.cs | 14 ++++++++++++++ Tools/Button2Tool.cs | 30 ++++++++++++++++++++++++++++++ Tools/Button3Tool.cs | 24 ++++++++++++++++++++++++ Tools/Tool.cs | 14 ++++++++++++++ Tools/ToolFactory.cs | 17 +++++++++++++++++ 7 files changed, 131 insertions(+) create mode 100644 Controllers/RibbonController.cs create mode 100644 Tools/Button1Tool.cs create mode 100644 Tools/Button2Tool.cs create mode 100644 Tools/Button3Tool.cs create mode 100644 Tools/Tool.cs create mode 100644 Tools/ToolFactory.cs diff --git a/Controllers/RibbonController.cs b/Controllers/RibbonController.cs new file mode 100644 index 0000000..faf8552 --- /dev/null +++ b/Controllers/RibbonController.cs @@ -0,0 +1,30 @@ +using ExcelDna.Integration.CustomUI; +using ExcelAddIn.Tools; + +namespace ExcelAddIn.Controllers; + +public class RibbonController : ExcelRibbon +{ + public override string GetCustomUI(string ribbonID) + { + return @" + + + + +