Esempio n. 1
0
        protected void btnAddORNGApplication_OnClick(object sender, EventArgs e)
        {
            // add the gadget to the person
            data.AddPersonalGadget(this.SubjectID, this.PredicateURI);
            hasGadget = true;
            DrawProfilesModule();
            upnlEditSection.Update();
            string scriptstring = "document.getElementById('" + gadget.GetChromeId() + "').style.display = 'block';";

            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hideshow", scriptstring, true);
        }
 private void UpdateSecuritySetting(string securitygroup)
 {
     // maybe be able to make this more general purpose
     if (this.PredicateURI.StartsWith(Profiles.ORNG.Utilities.OpenSocialManager.ORNG_ONTOLOGY_PREFIX))
     {
         Profiles.ORNG.Utilities.DataIO data = new Profiles.ORNG.Utilities.DataIO();
         if ("0".Equals(securitygroup))
         {
             data.RemovePersonalGadget(this.Subject, this.PredicateURI);
         }
         else
         {
             data.AddPersonalGadget(this.Subject, this.PredicateURI);
         }
     }
     else if (!"0".Equals(securitygroup))
     {
         Edit.Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();
         data.UpdateSecuritySetting(this.Subject, data.GetStoreNode(this.PredicateURI), Convert.ToInt32(securitygroup));
     }
     //Framework.Utilities.Cache.AlterDependency(this.Subject.ToString());
 }
 private void UpdateSecuritySetting(string securitygroup)
 {
     // maybe be able to make this more general purpose
     if (this.PredicateURI.StartsWith(Profiles.ORNG.Utilities.OpenSocialManager.ORNG_ONTOLOGY_PREFIX))
     {
         Profiles.ORNG.Utilities.DataIO data = new Profiles.ORNG.Utilities.DataIO();
         if ("0".Equals(securitygroup))
         {
             data.RemovePersonalGadget(this.Subject, this.PredicateURI);
         }
         else
         {
             data.AddPersonalGadget(this.Subject, this.PredicateURI);
         }
     }
     else if (!"0".Equals(securitygroup))
     {
         Edit.Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO();
         data.UpdateSecuritySetting(this.Subject, data.GetStoreNode(this.PredicateURI), Convert.ToInt32(securitygroup));
     }
     //Framework.Utilities.Cache.AlterDependency(this.Subject.ToString());
 }