/// <summary> /// Show the form and default to the given folder. /// </summary> /// <param name="caption">Form caption to display</param> /// <param name="service">ExchangeService to clone when making calls.</param> /// <param name="folder">Folder to display events from by default</param> public static void Show(string caption, FolderId folderId) { StreamingNotificationForm diag = new StreamingNotificationForm(); // Only try to populate CurrentFolderId if we were passed a value if (folderId != null) { diag.SetAndDisplayFolderId(folderId); } diag.Text = caption.Length == 0 ? "''" : caption; ((Control)diag).Show(); }
/// <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 MnuStreamingNotification_Click(object sender, EventArgs e) { StreamingNotificationForm.Show(); }
private void mnuToolsNotificationsStreamingNotificationsViewer_Click(object sender, EventArgs e) { StreamingNotificationForm.Show(); }
private void MnuStreamingNotifications_Click(object sender, EventArgs e) { StreamingNotificationForm.Show( string.Format(DisplayStrings.TITLE_NOTIFICATIONS_FOLDER, this.currentFolder.DisplayName), this.currentFolder.Id); }