private void AddtoCommunityMenu_Click(object sender, EventArgs e) { object comp = ((ToolStripMenuItem)sender).Tag; object target = (targetObject == null) ? (object)this.getTarget() : (object)targetObject; progressReporting = new CloudShareProgress(target, comp); progressReporting.ShowDialog(); progressReporting = null; this.closeContextMenu(); }
public static void UploadToNewCommunity(object target) { CloudCommunityCreate newForm = new CloudCommunityCreate(); newForm.ShowDialog(); if (CloudCommunityCreate.createdCommunityId.HasValue) { long communityId = CloudCommunityCreate.createdCommunityId.Value; MessageBox.Show(string.Format(Language.GetLocalizedText(-1, "Community {0} created!"), communityId)); CloudShareProgress progressReporting = new CloudShareProgress(communityId, null, target); progressReporting.ShowDialog(); progressReporting = null; } }