2013-03-29 17:00:07 +01:00
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
2013-06-27 20:30:15 +02:00
|
|
|
|
namespace Outlook2013TodoAddIn.Forms
|
2013-03-29 17:00:07 +01:00
|
|
|
|
{
|
2013-03-29 19:03:00 +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
|
|
|
|
|
{
|
2013-03-29 19:03:00 +01:00
|
|
|
|
#region "Properties"
|
2013-03-29 17:00:07 +01:00
|
|
|
|
|
2013-03-29 19:03:00 +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
|
|
|
|
|
{
|
2013-03-29 19:03:00 +01:00
|
|
|
|
get { return this.rbtnAll.Checked; }
|
2013-03-29 17:00:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-31 16:37:26 +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; }
|
|
|
|
|
|
2013-03-29 19:03:00 +01:00
|
|
|
|
#endregion "Properties"
|
|
|
|
|
|
|
|
|
|
#region "Methods"
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-10-31 16:37:26 +01:00
|
|
|
|
/// Load the form
|
2013-03-29 19:03:00 +01:00
|
|
|
|
/// </summary>
|
2013-03-29 17:00:07 +01:00
|
|
|
|
public FormRecurringOpen()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
2014-10-31 16:37:26 +01:00
|
|
|
|
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
|
2013-03-29 19:03:00 +01:00
|
|
|
|
#endregion "Methods"
|
2013-03-29 17:00:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|