34 lines
886 B
C#
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;
|
|
}
|
|
}
|
|
}
|