aboutsummaryrefslogtreecommitdiff
path: root/Source/DataExport/RibbonController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-12-08 14:01:19 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-12-08 14:01:19 +0300
commit75f6653fc7096c0c459f33eb16a324f073c3e3c8 (patch)
treefa6b75db79b036b5356c31ea739ca5d9510b544a /Source/DataExport/RibbonController.cs
parent74877f874e401d29f0576c5027abba83587103f3 (diff)
Create Ribbon dir
Diffstat (limited to 'Source/DataExport/RibbonController.cs')
-rw-r--r--Source/DataExport/RibbonController.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/Source/DataExport/RibbonController.cs b/Source/DataExport/RibbonController.cs
deleted file mode 100644
index c4ca6d7..0000000
--- a/Source/DataExport/RibbonController.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System.Runtime.InteropServices;
-using System.Windows.Forms;
-using ExcelDna.Integration.CustomUI;
-using RehauSku.Assist;
-
-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>";
- }
-
- public void OnButtonPressed(IRibbonControl control)
- {
- using (DataWriter dw = new DataWriter())
- {
- if (!dw.IsRangeValid())
- {
- MessageBox.Show("Выделен неверный диапазон!", "Неверный диапазон", MessageBoxButtons.OK, MessageBoxIcon.Information);
- return;
- }
-
- else
- {
- dw.FillSkuAmountDict();
- //dw.FillPriceList();
- }
- }
- }
- }
-}