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