KellyReport_D/Ribbon1.cs
2025-08-10 18:29:11 +08:00

34 lines
886 B
C#

using KellyReport_D.Properties;
using Microsoft.Office.Tools;
using Microsoft.Office.Tools.Ribbon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace KellyReport_D
{
public partial class Ribbon1
{
private CustomTaskPane jqSalesSummaryPanel;
private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
{
this.button1.Label = Resources.APP_NAME;
}
private void button1_Click(object sender, RibbonControlEventArgs e)
{
if (jqSalesSummaryPanel == null)
{
var panel = new JQSalesSummaryPanel();
jqSalesSummaryPanel = Globals.ThisAddIn.CustomTaskPanes.Add(panel, Resources.APP_NAME);
jqSalesSummaryPanel.Width = 600;
}
jqSalesSummaryPanel.Visible = true;
}
}
}