private void api_GetCommunitiesCompleted(object sender, GetCommunitiesCompletedEventArgs e)
 {
     api_GetCommunitiesCompleted(addToCommunityToolStripMenuItem, e, newCommunityMenu_Click, AddtoCommunityMenu_Click);
 }
        public static void api_GetCommunitiesCompleted(ToolStripMenuItem addToCommunityToolStripMenuItem,
            GetCommunitiesCompletedEventArgs e, EventHandler newCommunityMenu_Click, EventHandler AddtoCommunityMenu_Click)
        {
            addToCommunityToolStripMenuItem.DropDownItems.Clear();

            ToolStripMenuItem newCommunityMenu = new ToolStripMenuItem(Language.GetLocalizedText(-1, "New Community..."));
            newCommunityMenu.Click += new EventHandler(newCommunityMenu_Click);
            addToCommunityToolStripMenuItem.DropDownItems.Add(newCommunityMenu);
            addToCommunityToolStripMenuItem.DropDownItems.Add(new ToolStripSeparator());

            ToolStripMenuItem menuItem = addToCommunityToolStripMenuItem;
            if (e.Error == null)
            {
                if (e.Result is WWTCommunitySt[])
                {
                    addToCommunityToolStripMenuItem.Tag = e.Result;
                }
                else
                {
                    addToCommunityToolStripMenuItem.Tag = null;
                }
            }
            else
            {
                addToCommunityToolStripMenuItem.Tag = null;
            }
            CreatePickFolderMenuCommunities(menuItem, AddtoCommunityMenu_Click);
        }