Outlook2013CalendarAddIn/Outlook2013TodoAddIn/TodoRibbonAddIn.cs

24 lines
674 B
C#
Raw Normal View History

2013-03-29 17:00:07 +01:00
using Microsoft.Office.Tools.Ribbon;
namespace Outlook2013TodoAddIn
{
/// <summary>
/// Adds a button to the add-in placeholder in the ribbon
/// </summary>
2013-03-29 17:00:07 +01:00
public partial class TodoRibbonAddIn
{
#region "Methods"
2013-03-29 17:00:07 +01:00
/// <summary>
/// Change visibility of the pane
/// </summary>
/// <param name="sender">Sender</param>
/// <param name="e">RibbonControlEventArgs</param>
2013-03-29 17:00:07 +01:00
private void toggleButton1_Click(object sender, RibbonControlEventArgs e)
{
Globals.ThisAddIn.ToDoTaskPane.Visible = this.toggleButton1.Checked;
}
#endregion
2013-03-29 17:00:07 +01:00
}
}