コード例 #1
0
        /// <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();
        }
コード例 #2
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 MnuStreamingNotification_Click(object sender, EventArgs e)
 {
     StreamingNotificationForm.Show();
 }
コード例 #3
0
 private void mnuToolsNotificationsStreamingNotificationsViewer_Click(object sender, EventArgs e)
 {
     StreamingNotificationForm.Show();
 }
コード例 #4
0
ファイル: FolderContentForm.cs プロジェクト: zyonet/EwsEditor
 private void MnuStreamingNotifications_Click(object sender, EventArgs e)
 {
     StreamingNotificationForm.Show(
         string.Format(DisplayStrings.TITLE_NOTIFICATIONS_FOLDER, this.currentFolder.DisplayName),
         this.currentFolder.Id);
 }