Beispiel #1
0
 private void MnuNotifications_Click(object sender, EventArgs e)
 {
     PullNotificationForm.Show(
         string.Format(DisplayStrings.TITLE_NOTIFICATIONS_FOLDER, this.currentFolder.DisplayName),
         this.currentFolder.Id,
         this.CurrentService);
 }
        /// <summary>
        /// Show the form and default to the given folder.
        /// </summary>
        /// <param name="caption">Form caption to display</param>
        /// <param name="service">ExchangeService to use when making calls.</param>
        /// <param name="folder">Folder to display events from by default</param>
        public static void Show(string caption,
                                FolderId folderId,
                                ExchangeService service)
        {
            PullNotificationForm diag = new PullNotificationForm();

            // Only try to populate CurrentFolderId if we were passed a value
            if (folderId != null)
            {
                diag.SetAndDisplayFolderId(folderId);
            }
            diag.Text           = caption.Length == 0 ? "''" : caption;
            diag.CurrentService = service;

            diag.Show();
        }
Beispiel #3
0
 /// <summary>
 /// Display the PullNotificationForm
 /// </summary>
 /// <param name="sender">The parameter is not used.</param>
 /// <param name="e">The parameter is not used.</param>
 private void MnuNotification_Click(object sender, EventArgs e)
 {
     PullNotificationForm.Show(this.CurrentService);
 }
Beispiel #4
0
 private void mnuToolsNotificationsPullNotificationsViewer_Click(object sender, EventArgs e)
 {
     PullNotificationForm.Show(this.CurrentService);
 }