private void tabPageDeleteVocabulary_Enter(object sender, EventArgs e) { listViewDeleteVocabulary.Items.Clear(); tabPageDeleteVocabulary.Tag = listViewDeleteVocabulary; //this.actionableListView = listViewDeleteVocabulary; richTextBox2.Text = string.Empty; VocabularyInfoCollection vocabularies = BreHelper.GetPublishedVocabularies(); LoadVocabularies(vocabularies); }
public override bool Execute(out string message) { bool result = false; string exceptionMessage; int iresult = BreHelper.DeleteVocabulary(this.BreInfo.Name, Convert.ToInt32(this.BreInfo.MajorVersion), Convert.ToInt32(this.BreInfo.MinorVersion), out exceptionMessage); result = iresult == 0 ? true : false; message = result ? "Vocabulary successfully deleted." : exceptionMessage; return(result); }
public override bool Execute(out string message) { bool result = false; string exceptionMessage; int iresult = BreHelper.Import(this.BreInfo.BrlFilePath, out exceptionMessage); result = iresult == 0 ? true : false; message = result ? "Brl successfully imported and published." : exceptionMessage; return(result); }
public override bool Execute(out string message) { bool result = false; string exceptionMessage; int iresult = BreHelper.UnDeployPolicy(this.BreInfo.Name, Convert.ToInt32(this.BreInfo.MajorVersion), Convert.ToInt32(this.BreInfo.MinorVersion), out exceptionMessage); result = iresult == 0 ? true : false; message = result ? "Policy successfully Undeployed." : exceptionMessage; return(result); }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { try { RuleSetInfo ruleSetInfo = this.treeView1.SelectedNode.Tag as RuleSetInfo; //Viewer viewer = new Viewer(GenericHelper.TransformData("BizTalkDeploymentTool.EmbeddedResources.Policy.xslt", BreHelper.GetRules(ruleSetInfo))); Viewer viewer = new Viewer(BreHelper.GetRules(ruleSetInfo)); viewer.ShowDialog(); } catch (Exception exe) { DisplayError(exe); } }
public void LoadView() { webBrowser1.DocumentText = this.TransformData("BizTalkDeploymentTool.EmbeddedResources.Policy.xslt", BreHelper.GetRules(this.BtsRuleSetInfo)).Replace("${PROCESS_FLOW}", this.TransformData("BizTalkDeploymentTool.EmbeddedResources.PipelineDisplay.xslt", this.PipelineData)); }
private void viewToolStripMenuItem_Click(object sender, EventArgs e) { this.FormState = FormStateEnum.Processing; ListViewItem item = actionableListView.SelectedItems[0]; string ruleName = item.SubItems[0].Text; string majorV = item.SubItems[1].Text; string minorV = item.SubItems[2].Text; string rule = GenericHelper.TransformData("BizTalkDeploymentTool.EmbeddedResources.Policy.xslt", (BreHelper.GetRules(new RuleSetInfo(ruleName, Convert.ToInt32(majorV), Convert.ToInt32(minorV))))); this.FormState = FormStateEnum.Initial; Viewer viewer = new Viewer(rule); viewer.Show(); }