Example #1
0
        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 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);
        }
Example #3
0
 public static ToolStripMenuItem GetShareOnFacebookMenu(object target, closeContextMenuDel closeContextMenuFn)
 {
     return(new CloudCommunities(target, closeContextMenuFn).GetShareOnFacebookMenu());
 }
Example #4
0
 public static ToolStripMenuItem GetShareOnFacebookMenu(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
 {
     return(new CloudCommunities(getTargetFn, closeContextMenuFn).GetShareOnFacebookMenu());
 }
Example #5
0
 public static ToolStripMenuItem GetAddToCommunityMenu(object target, closeContextMenuDel closeContextMenuFn)
 {
     return(new CloudCommunities(target, closeContextMenuFn).GetAddToCommunityMenu());
 }
Example #6
0
 public static ToolStripMenuItem GetAddToCommunityMenu(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
 {
     return(new CloudCommunities(getTargetFn, closeContextMenuFn).GetAddToCommunityMenu());
 }
Example #7
0
 public CloudCommunities(object target, closeContextMenuDel closeContextMenuFn)
     : this(null, closeContextMenuFn, null)
 {
     targetObject = target;
 }
Example #8
0
 public CloudCommunities(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
     : this(getTargetFn, closeContextMenuFn, null)
 {
 }
 public CloudCommunities(object target, closeContextMenuDel closeContextMenuFn)
     : this(null, closeContextMenuFn, null)
 {
     targetObject = target;
 }
 public CloudCommunities(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
     : this(getTargetFn, closeContextMenuFn, null)
 {
 }
 public static ToolStripMenuItem GetShareOnFacebookMenu(object target, closeContextMenuDel closeContextMenuFn)
 {
     return new CloudCommunities(target, closeContextMenuFn).GetShareOnFacebookMenu();
 }
 public static ToolStripMenuItem GetShareOnFacebookMenu(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
 {
     return new CloudCommunities(getTargetFn, closeContextMenuFn).GetShareOnFacebookMenu();
 }
 public static ToolStripMenuItem GetAddToCommunityMenu(object target, closeContextMenuDel closeContextMenuFn)
 {
     return new CloudCommunities(target, closeContextMenuFn).GetAddToCommunityMenu();
 }
 public static ToolStripMenuItem GetAddToCommunityMenu(getTargetDel getTargetFn, closeContextMenuDel closeContextMenuFn)
 {
     return new CloudCommunities(getTargetFn, closeContextMenuFn).GetAddToCommunityMenu();
 }