aboutsummaryrefslogtreecommitdiff
path: root/Source/DataWriter/RibbonController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-12-05 16:55:36 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-12-05 16:55:36 +0300
commit50ae69bea4a7582524a17751c2cbbb8ae7ead0f3 (patch)
tree7121434536fa7244f151f7bdab80b7335ee96b12 /Source/DataWriter/RibbonController.cs
parent8e5db1238ad3ed97f51d9f0a9c7de83c00a12983 (diff)
Add button and DataWriter class
Diffstat (limited to 'Source/DataWriter/RibbonController.cs')
-rw-r--r--Source/DataWriter/RibbonController.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/DataWriter/RibbonController.cs b/Source/DataWriter/RibbonController.cs
new file mode 100644
index 0000000..a9eedb5
--- /dev/null
+++ b/Source/DataWriter/RibbonController.cs
@@ -0,0 +1,26 @@
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using ExcelDna.Integration.CustomUI;
+
+namespace Ribbon
+{
+ [ComVisible(true)]
+ public class RibbonController : ExcelRibbon
+ {
+ public override string GetCustomUI(string RibbonID)
+ {
+ return @"
+ <customUI xmlns='http://schemas.microsoft.com/office/2006/01/customui'>
+ <ribbon>
+ <tabs>
+ <tab id='tab1' label='REHAU'>
+ <group id='group1' label='Прайс-лист'>
+ <button id='button1' label='Экспорт' onAction='OnButtonPressed'/>
+ </group >
+ </tab>
+ </tabs>
+ </ribbon>
+ </customUI>";
+ }
+ }
+}