// Token: 0x06001914 RID: 6420 RVA: 0x00091A08 File Offset: 0x0008FC08
        public PreFormActionResponse Execute(OwaContext owaContext, out ApplicationElement applicationElement, out string type, out string state, out string action)
        {
            if (owaContext == null)
            {
                throw new ArgumentNullException("owaContext");
            }
            this.userContext   = owaContext.UserContext;
            this.owaContext    = owaContext;
            applicationElement = ApplicationElement.Folder;
            type   = "IPF.Note";
            action = null;
            state  = null;
            PreFormActionResponse preFormActionResponse = null;

            using (Folder folder = this.ProcessWebPartRequest())
            {
                if (folder != null)
                {
                    preFormActionResponse = new PreFormActionResponse();
                    preFormActionResponse.AddParameter("id", OwaStoreObjectId.CreateFromStoreObject(folder).ToBase64String());
                    if (!string.IsNullOrEmpty(this.webPartParameters["view"]))
                    {
                        preFormActionResponse.AddParameter("view", this.webPartParameters["view"]);
                    }
                    if (this.isoDateString != null)
                    {
                        preFormActionResponse.AddParameter("d", this.isoDateString);
                    }
                    type = folder.ClassName;
                    int num = 0;
                    if (int.TryParse(this.webPartParameters["part"], out num) && num == 1)
                    {
                        applicationElement = ApplicationElement.WebPartFolder;
                    }
                    preFormActionResponse.ApplicationElement = applicationElement;
                    preFormActionResponse.Action             = action;
                    preFormActionResponse.Type  = type;
                    preFormActionResponse.State = state;
                }
            }
            return(preFormActionResponse);
        }
        // Token: 0x060011E1 RID: 4577 RVA: 0x0006C07C File Offset: 0x0006A27C
        public string GetUrl(bool needApplicationElement)
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (needApplicationElement && this.applicationElement != ApplicationElement.NotSet)
            {
                PreFormActionResponse.AppendUrlParameter("ae", FormsRegistry.ApplicationElementParser.GetString((int)this.applicationElement), stringBuilder);
            }
            PreFormActionResponse.AppendUrlParameter("t", this.type, stringBuilder);
            PreFormActionResponse.AppendUrlParameter("a", this.action, stringBuilder);
            PreFormActionResponse.AppendUrlParameter("s", this.state, stringBuilder);
            if (this.parameters != null)
            {
                foreach (KeyValuePair <string, string> keyValuePair in this.parameters)
                {
                    PreFormActionResponse.AppendUrlParameter(keyValuePair.Key, keyValuePair.Value, stringBuilder);
                }
            }
            return(stringBuilder.ToString());
        }