Outlook2013CalendarAddIn/Outlook2013TodoAddIn/Forms/FormRecurringOpen.cs

56 lines
1.4 KiB
C#
Raw Permalink Normal View History

2013-03-29 17:00:07 +01:00
using System.Windows.Forms;
namespace Outlook2013TodoAddIn.Forms
2013-03-29 17:00:07 +01:00
{
/// <summary>
/// Mimic Outlook's popup to open one instance or the whole series
/// </summary>
2013-03-29 17:00:07 +01:00
public partial class FormRecurringOpen : Form
{
#region "Properties"
2013-03-29 17:00:07 +01:00
/// <summary>
/// Whether the user wants to retrieve all instances or not
/// </summary>
2013-03-29 17:00:07 +01:00
public bool OpenRecurring
{
get { return this.rbtnAll.Checked; }
2013-03-29 17:00:07 +01:00
}
/// <summary>
/// To reuse the form, gets/sets the title
/// </summary>
public string Title { get; set; }
/// <summary>
/// To reuse the form, gets/sets the message
/// </summary>
public string Message { get; set; }
#endregion "Properties"
#region "Methods"
/// <summary>
/// Load the form
/// </summary>
2013-03-29 17:00:07 +01:00
public FormRecurringOpen()
{
InitializeComponent();
}
/// <summary>
/// Load the form
/// </summary>
/// <param name="sender">Sender</param>
/// <param name="e">EventArgs</param>
private void FormRecurringOpen_Load(object sender, System.EventArgs e)
{
this.Text = this.Title;
this.textBox1.Text = this.Message;
}
#endregion "Methods"
2013-03-29 17:00:07 +01:00
}
}