Example #1
0
 void btnChange_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     if (!e.UnsecureOutput.ContainsKey("NewLCID")) return;
     int newLCID = int.Parse(e.UnsecureOutput["NewLCID"].ToString());
     MemDefCulture cu = tempDef.Culture[LCID];
     tempDef.Culture.Remove(LCID);
     cu.LCID = newLCID;
     if (cu.OldLCID == 0) cu.OldLCID = LCID;
     tempDef.Culture.Add(cu.LCID, cu);
     LCID = newLCID;
     cu.Name = CultureInfo.GetCultureInfo(LCID).NativeName;
     tempDef.RegisterChange(cu.Guid);
     WAFContext.FlagChangeInTemporaryDefinition();
     WAFContext.UpdateTemporaryLocalDefinitionFile();
     _tempDef = null;
     this.Refresh();
     if (NewLCID != null) NewLCID(this, EventArgs.Empty);
 }
Example #2
0
 void btnNew_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     if (!e.UnsecureOutput.ContainsKey("NewLCID")) return;
     int newLCID = int.Parse(e.UnsecureOutput["NewLCID"].ToString());
     MemDefCulture cu = new MemDefCulture();
     cu.LCID = newLCID;
     cu.Name = CultureInfo.GetCultureInfo(newLCID).NativeName;
     tempDef.Culture.Add(cu.LCID, cu);
     tempDef.RegisterChange(cu.Guid);
     WAFContext.FlagChangeInTemporaryDefinition();
     WAFContext.UpdateTemporaryLocalDefinitionFile();
     _editForm.LCID = newLCID;
     _editForm.Refresh();
     _tempDef = null;
     list.SetSelected(_editForm.LCID.ToString());
     setQuery();
 }
Example #3
0
 void newPath_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     if (e.UnsecureOutput.ContainsKey("NewPath")) {
         string newPath = e.UnsecureOutput["NewPath"].ToString();
         string newKey = newPath.Substring(WAFContext.PathFromRootToAppFolder.Length).Replace("\\", ":");
         _tree.ShowFiles = WAFMaster.EditModule.Menu.IsItemChecked("View_ShowFilesInTree");
         _tree.Refresh();
         _tree.SetSelected(newKey);
         updateControls();
     } else {
         rightPanelFolder.Visible = false;
         rightPanelFile.Visible = false;
     }
 }
Example #4
0
    void btnSelectContentToSend_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
    {
        this.SelectedBodyNodeId = WAFContext.Session.GetSetting<int>("SelectedBodyNodeId", PersistenceScope.UserSession, 0);
        if (this.SelectedBodyNodeId > 0) {
            if (WAFContext.Session.ContentExists(this.SelectedBodyNodeId)) {
                ContentBase cb = WAFContext.Session.GetContent<ContentBase>(this.SelectedBodyNodeId);
                NewsletterDelivery delivery = null;
                if (this.QuickDeliveryId > 0) {
                    delivery = WAFContext.Session.GetContent<NewsletterDelivery>(this.QuickDeliveryId);
                    delivery.BodyNode.Set(cb.NodeId);
                    delivery.Subject = txtSubject.Text;
                    delivery.TrackResponse = chkTrackDelivery.Checked;
                    int i = 0;
                    if (int.TryParse(ddlRecipientLists.SelectedValue, out i)) {
                        if (i > 0) {
                            delivery.RecipientList.Set(i);
                        }
                    }
                    delivery.UpdateChanges();
                } else {
                    if (WAFContext.Session.GetSetting<NewsletterDelivery>("quickdelivery", PersistenceScope.UserSession) != null) {
                        delivery = WAFContext.Session.GetSetting<NewsletterDelivery>("quickdelivery", PersistenceScope.UserSession);
                    }
                    delivery.BodyNode.Set(cb.NodeId);
                    delivery.TrackResponse = chkTrackDelivery.Checked;
                    int i = 0;
                    if (int.TryParse(ddlRecipientLists.SelectedValue, out i)) {
                        if (i > 0) {
                            delivery.RecipientList.Set(i);
                        }
                    }
                    delivery.Subject = txtSubject.Text;
                    WAFContext.Session.SetSetting("quickdelivery", delivery, PersistenceScope.UserSession);
                }
                UpdateBodyNodeText(delivery);
                btnSelectContentToSend.Text = "Change content to send";

            }
            UpdateForm();
        }
    }
Example #5
0
 void btnEditLocalWebpage_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     updateAddressControls();
 }
Example #6
0
 void btnNew_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     ensureListDataBind();
     WebDialogueContext.SendResult(new UniqueList<CKeyNLR>(new CKeyNLR(e.UnsecureOutput["key"].ToString())));
     Response.End();
 }
Example #7
0
 void btnEditFileInLibrary_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     updateAddressControls();
 }
Example #8
0
 void btnSelectLocalWebPage_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     if (e.UnsecureOutput.ContainsKey("key")) {
         CKeyNLR key = new CKeyNLR(e.UnsecureOutput["key"].ToString());
         txtAddress.Text = WAFContext.GetContentQueryAddress(key.NodeId, key.LCID, key.Revision, false).ToString();
         updateAddressControls();
     }
 }
Example #9
0
 void btnSelectFileInContent_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     if (e.UnsecureOutput.ContainsKey("PropertyPath")) {
         PropertyPath pp = new PropertyPath(e.UnsecureOutput["PropertyPath"].ToString());
         FilePropertyValue fpv = WAFContext.Session.GetProperty<FilePropertyValue>(pp);
         txtAddress.Text = fpv.GetUrl();
         updateAddressControls();
     }
 }
 void btnUploadArchive_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
 }
 void btnNewFolder_WorkflowMethodCompleted(object sender, WorkflowMethodArgs e)
 {
     int newNodeId = int.Parse((string)e.UnsecureOutput["NewFolderNodeId"]);
     FileFolder ff = WAFContext.Session.GetContent<FileFolder>(newNodeId);
     treeFolders.Open(ff.ParentFolder.GetId());
     treeFolders.SetSelected(newNodeId);
     setWorkflowScripts();
 }