private void MnuItems_Click(object sender, EventArgs e) { FolderContentForm.Show( string.Format(DisplayStrings.TITLE_CONTENTS_FOLDER, this.currentFolder.DisplayName), this.currentFolder, ItemTraversal.Shallow, this.CurrentService, this); }
private void MnuAssociatedItems_Click(object sender, EventArgs e) { FolderContentForm.Show( string.Format(DisplayStrings.TITLE_CONTENTS_ASSOC, this.currentFolder.DisplayName), this.currentFolder, ItemTraversal.Associated, this.CurrentService, this); }
private void DisplayFolder(FolderId folderId) { _CurrentService.ClientRequestId = Guid.NewGuid().ToString(); // Set a new GUID Folder oFolder = Folder.Bind( _CurrentService, folderId, _CurrentDetailPropertySet); FolderContentForm.Show( string.Format(DisplayStrings.TITLE_CONTENTS_FOLDER, oFolder.DisplayName), oFolder, ItemTraversal.Shallow, _CurrentService, this); }
public static void Show( string caption, Folder folder, ItemTraversal contentTraversal, ExchangeService service, Form parentForm) { FolderContentForm form = new FolderContentForm(); form.ContentItemView.Traversal = contentTraversal; form.CurrentService = service; form.currentFolder = folder; form.PropertyDetailsGrid.CurrentService = service; form.Text = caption.Length == 0 ? "''" : caption; form.CallingForm = parentForm; form.Show(); }
/// <summary> /// Allow the user to input an FolderId and display folder items /// in FolderContentsForm. /// </summary> /// <param name="sender">The parameter is not used.</param> /// <param name="e">The parameter is not used.</param> private void MnuOpenFolderById_Click(object sender, EventArgs e) { FolderIdDialog oForm = new FolderIdDialog(this.CurrentService); oForm.ShowDialog(); if (oForm.ChoseOK == true && oForm.ChosenFolderId != null) { //oForm.ChosenFolderId this.CurrentService.ClientRequestId = Guid.NewGuid().ToString(); // Set a new GUID Folder folder = Folder.Bind( this.CurrentService, oForm.ChosenFolderId, this.CurrentDetailPropertySet); FolderContentForm.Show( string.Format(DisplayStrings.TITLE_CONTENTS_FOLDER, folder.DisplayName), folder, ItemTraversal.Shallow, this.CurrentService, this); } //FolderId folderId = null; //if (FolderIdDialog.ShowDialog(ref folderId) == DialogResult.OK && folderId != null) //{ // Folder folder = Folder.Bind( // this.CurrentService, // folderId, // this.CurrentDetailPropertySet); // FolderContentForm.Show( // string.Format(DisplayStrings.TITLE_CONTENTS_FOLDER, folder.DisplayName), // folder, // ItemTraversal.Shallow, // this.CurrentService, // this); //} }