public CloudCommunities(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn, FolderBrowser exPane)
        {
            this.getTarget = getTargetFn;
            this.closeContextMenu = closeContextMenuFn;
            if (exPane != null)
            {
                this.explorePane = exPane;
            }
            else
            {
                this.explorePane = new FolderBrowser();
            }

            this.addToCommunityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.newCommunityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.shareOnFacebookMenuItem = new System.Windows.Forms.ToolStripMenuItem();

            this.shareOnFacebookMenuItem.Name = "shareOnFacebookMenuItem";
            this.shareOnFacebookMenuItem.Size = new System.Drawing.Size(164, 22);
            this.shareOnFacebookMenuItem.Text = Language.GetLocalizedText(-1, "Share on Facebook");
            this.shareOnFacebookMenuItem.Click += new EventHandler(shareOnFacebookMenuItem_Click);

            this.newCommunityToolStripMenuItem.Name = "newCommunityToolStripMenuItem";
            this.newCommunityToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
            this.newCommunityToolStripMenuItem.Text = Language.GetLocalizedText(-1, "New Community...");

            this.addToCommunityToolStripMenuItem.DropDownItems.AddRange(
                new System.Windows.Forms.ToolStripItem[] {
                    this.newCommunityToolStripMenuItem
                });
            this.addToCommunityToolStripMenuItem.Name = "addToCommunityToolStripMenuItem";
            this.addToCommunityToolStripMenuItem.Size = new System.Drawing.Size(224, 22);
            this.addToCommunityToolStripMenuItem.Text = Language.GetLocalizedText(-1, "Add to Community");
            this.addToCommunityToolStripMenuItem.DropDownOpening += new System.EventHandler(this.addToCommunityToolStripMenuItem_DropDownOpening);
            this.addToCommunityToolStripMenuItem.Click += new System.EventHandler(this.addToCommunityToolStripMenuItem_Click);
        }
 public static ToolStripMenuItem GetShareOnFacebookMenu(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
 {
     return new CloudCommunities(getTargetFn, closeContextMenuFn).GetShareOnFacebookMenu();
 }
 public CloudCommunities(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
     : this(getTargetFn, closeContextMenuFn, null)
 {
 }
 public static ToolStripMenuItem GetAddToCommunityMenu(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
 {
     return new CloudCommunities(getTargetFn, closeContextMenuFn).GetAddToCommunityMenu();
 }