コード例 #1
0
 private void AstAttributeRelationshipNode_SingletonPropertyChanged(object sender, VulcanPropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Parent" || e.PropertyName == "Child")
     {
         VulcanCompositeCollectionChanged(_attributes, e.OldValue as AstNamedNode, e.NewValue as AstNamedNode);
     }
 }
コード例 #2
0
 private void AstSingleInTransformationNode_SingletonPropertyChanged(object sender, VulcanPropertyChangedEventArgs e)
 {
     /*
     if (e.PropertyName == "InputPath")
     {
         var oldInputPath = e.OldValue as AstDataflowInputPathNode;
         var newInputPath = e.NewValue as AstDataflowInputPathNode;
         if (oldInputPath != null && oldInputPath.OutputPath.Transformation != null)
         {
             oldInputPath.OutputPath.Transformation.UnbindInputPath(oldInputPath);
         }
         if (newInputPath != null && newInputPath.OutputPath.Transformation != null)
         {
             newInputPath.OutputPath.Transformation.BindInputPath(newInputPath);
         }
     }
      */
 }
コード例 #3
0
ファイル: AstTableCloneNode.cs プロジェクト: japj/vulcan
        private void AstTableNode_SingletonPropertyChanged(object sender, VulcanPropertyChangedEventArgs e)
        {
            if (e.PropertyName == "Table")
            {
                if (e.OldValue != null)
                {
                    ((AstTableNode)e.OldValue).Columns.CollectionChanged -= TableColumns_CollectionChanged;
                    OnClearBaseTableColumns();
                }

                if (Table != null)
                {
                    foreach (var column in Table.Columns)
                    {
                        OnAddBaseTableColumn(column);
                    }

                    Table.Columns.CollectionChanged += TableColumns_CollectionChanged;
                }
            }
        }
コード例 #4
0
ファイル: AstNamedNode.Designer.cs プロジェクト: japj/vulcan
        private void AstNamedNode_SingletonPropertyChanged(object sender, VulcanPropertyChangedEventArgs e)
        {
            if (e.PropertyName == "ScopeBoundary")
            {
                var oldScopeBoundary = e.OldValue as IScopeBoundary;
                if (oldScopeBoundary != null)
                {
                    oldScopeBoundary.PropertyChanged -= ScopeBoundary_PropertyChanged;
                }

                var newScopeBoundary = e.NewValue as IScopeBoundary;
                if (newScopeBoundary != null)
                {
                    newScopeBoundary.PropertyChanged += ScopeBoundary_PropertyChanged;
                }
            }

            if (e.PropertyName == "Name")
            {
                VulcanOnPropertyChanged("ScopedName", ScopedName, ScopedName);
            }
        }
コード例 #5
0
ファイル: AstTableColumnBaseNode.cs プロジェクト: japj/vulcan
 // TODO: Need a preview event to implement computed and assignable correctly
 private void AstTableColumnBaseNode_SingletonPropertyChanged(object sender, VulcanPropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Computed")
     {
         VulcanOnPropertyChanged("IsComputed", IsComputed, IsComputed);
         VulcanOnPropertyChanged("IsAssignable", IsAssignable, IsAssignable);
     }
 }