private void SelectFolder() { var folder = _optionTasks.PickFolderOrNull(); if (folder != null) { if (!_model.SetFolder(folder)) { string wrongFolderMessage = Strings.Get($"Wrong ItemType in folder '{folder.Name}'. It should be a calendar, task or contact folder."); MessageBox.Show(wrongFolderMessage, Strings.Get($"Configuration Error")); return; } } }
private void SelectFolder() { var folder = _optionTasks.PickFolderOrNull(); if (folder != null) { if (!_model.SetFolder(folder)) { string wrongFolderMessage = string.Format("Wrong ItemType in folder '{0}'. It should be a calendar, task or contact folder.", folder.Name); MessageBox.Show(wrongFolderMessage, "Configuration Error"); return; } if (folder.DefaultItemType == OlItemType.olContactItem) { MessageBox.Show( "Synchronization of Outlook distribution lists is only supported for SOGo at the moment!", ComponentContainer.MessageBoxTitle, MessageBoxButton.OK, MessageBoxImage.Warning); } } }