Add OnButtonPressed method to Riboon controller
This commit is contained in:
parent
878b5d2b6a
commit
f4ea6bd071
@ -1,6 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using ExcelDna.Integration.CustomUI;
|
using ExcelDna.Integration.CustomUI;
|
||||||
|
using Rehau.Sku.Assist;
|
||||||
|
|
||||||
namespace Ribbon
|
namespace Ribbon
|
||||||
{
|
{
|
||||||
@ -22,5 +23,23 @@ namespace Ribbon
|
|||||||
</ribbon>
|
</ribbon>
|
||||||
</customUI>";
|
</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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user