/// <summary>Occurs when the user wants to select a new folder name that replaces the old folder name of the selected tables.</summary>
        private void EhChooseFolderForSelectedItems()
        {
            var selection = new Altaxo.Gui.Main.SingleFolderChoice();

            if (Current.Gui.ShowDialog(ref selection, "Choose new folder which contains similar tables", false))
            {
                var newFolder = selection.SelectedFolder;
                foreach (var entry in _tableList.Where(x => x.IsSelected))
                {
                    var tableToChange = (AbsoluteDocumentPath)entry.Tag;
                    // try to find a table of the same short name in the selected folder
                    if (tableToChange.Count > 0)
                    {
                        string newTableName = tableToChange[tableToChange.Count - 1];
                        string shortName    = Altaxo.Main.ProjectFolder.GetNamePart(newTableName);
                        newTableName = newFolder.Name + shortName;

                        if (Current.Project.DataTableCollection.Contains(newTableName))
                        {
                            ((MyXTableListNode)entry).NewTable = Current.Project.DataTableCollection[newTableName];
                        }
                    }
                }
            }
        }
		/// <summary>Occurs when the user wants to select a new folder name that replaces the old folder name of the selected tables.</summary>
		private void EhChooseFolderForSelectedItems()
		{
			var selection = new Altaxo.Gui.Main.SingleFolderChoice();

			if (Current.Gui.ShowDialog(ref selection, "Choose new folder which contains similar tables", false))
			{
				var newFolder = selection.SelectedFolder;
				foreach (var entry in _tableList.Where(x => x.IsSelected))
				{
					var tableToChange = (AbsoluteDocumentPath)entry.Tag;
					// try to find a table of the same short name in the selected folder
					if (tableToChange.Count > 0)
					{
						string newTableName = tableToChange[tableToChange.Count - 1];
						string shortName = Altaxo.Main.ProjectFolder.GetNamePart(newTableName);
						newTableName = newFolder.Name + shortName;

						if (Current.Project.DataTableCollection.Contains(newTableName))
							((MyXTableListNode)entry).NewTable = Current.Project.DataTableCollection[newTableName];
					}
				}
			}
		}