/// <summary> /// Définit la valeur du TargetItem en cour d'édition /// et affiche cette valeur dans le TextBox /// </summary> /// <param name="value">La valeur du TargetItem en cour d'édition</param> public void setTransformationTree(Kernel.Domain.TransformationTree tree) { if (this.ActiveItemPanel == null) { this.ActiveItemPanel = (TransformationTreeItemPanel)this.panel.Children[this.panel.Children.Count - 1]; } this.ActiveItemPanel.SetValue(tree); }
/// <summary> /// Cette méthode est exécutée lorsqu'on sélectionne une target sur la sidebar. /// Cette opération a pour but de rajouté la target sélectionnée au filtre de la table en édition, /// ou au scope des cellProperties correspondants à la sélection Excel. /// </summary> /// <param name="sender">La target sélectionné</param> protected void onSelectTransformationTreeFromSidebar(object sender) { if (sender != null && sender is Kernel.Domain.TransformationTree) { Kernel.Domain.TransformationTree tree = (Kernel.Domain.TransformationTree)sender; CombinedTransformationTreeEditorItem page = (CombinedTransformationTreeEditorItem)getCombineTransformationTreeEditor().getActivePage(); if (page == null) { return; } page.getCombineTransformationTreeForm().CombinedTransformationTreePanel.setTransformationTree(tree); } }