2013-03-29 17:00:07 +01:00
|
|
|
|
using Microsoft.Office.Tools.Ribbon;
|
|
|
|
|
|
|
|
|
|
namespace Outlook2013TodoAddIn
|
|
|
|
|
{
|
2013-03-29 19:03:00 +01:00
|
|
|
|
/// <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
|
|
|
|
|
{
|
2013-03-29 19:03:00 +01:00
|
|
|
|
#region "Methods"
|
2013-03-29 17:00:07 +01:00
|
|
|
|
|
2013-03-29 19:03:00 +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;
|
|
|
|
|
}
|
2013-03-29 19:03:00 +01:00
|
|
|
|
|
|
|
|
|
#endregion
|
2013-03-29 17:00:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|