protected void AddBubbleLink_Click(object sender, EventArgs e) { Guid bubbleId = new Guid(Request["BubbleId"]); Bubble bubble = BubbleLogic.GetBubble(bubbleId); BubbleLink bubbleLink = BubbleLogic.AddBubleLink(DaemonHttpContext.LoggedInParticipant, bubble); Response.Redirect(Request.Url.OriginalString); }
protected void AddObjectButton_Click(object sender, EventArgs e) { if (ObjectTypeDropDownList.SelectedValue == null || ObjectTypeDropDownList.SelectedValue.Length == 0) { return; } if (BubbleDropDownList.SelectedValue == null || BubbleDropDownList.SelectedValue.Length == 0) { return; } ObjectType objectType = ObjectLogic.GetObjectType(new Guid(ObjectTypeDropDownList.SelectedValue)); Bubble bubble = BubbleLogic.GetBubble(new Guid(BubbleDropDownList.SelectedValue)); CloudObject cloudObject = ObjectLogic.AddObject(DaemonHttpContext.LoggedInParticipant, objectType, bubble); Response.Redirect(Request.Url.OriginalString); }