Exemple #1
0
        private void Synchronize(SynchronizationKey key)
        {
            if (key == null)
            {
                return;
            }

            var collection = this.PairedColumns;

            SynchronizationEntry pair;

            if (!collection.TryGetValue(key, out pair))
            {
                if (key.MasterColumn != null)
                {
                    pair = new BoundColumn(key);
                }
                else
                {
                    pair = new UnboundColumn(key);
                }

                collection.Add(key, pair);
            }

            pair.Synchronize();
        }
Exemple #2
0
 internal UnboundColumn(SynchronizationKey key)
     : base(key)
 {
     if (key.MasterColumn != null)
     {
         throw new ArgumentException("The master column should not be set.", "key");
     }
 }
 internal BoundColumn(ColumnSynchronizationManager owner, SynchronizationKey key)
     : base(owner, key)
 {
     if (key.MasterColumn == null)
     {
         throw new ArgumentException("The master column is not set.", "key");
     }
 }
Exemple #4
0
            protected SynchronizationEntry(SynchronizationKey key)
            {
                if (key == null)
                {
                    throw new ArgumentNullException("key");
                }

                m_key = key;
            }
Exemple #5
0
            internal BoundColumn(SynchronizationKey key)
                : base(key)
            {
                if (key.MasterColumn == null)
                {
                    throw new ArgumentException("The master column is not set.", "key");
                }

                m_bindings = BoundColumn.CreateBindings(key.MasterColumn).ToArray();
            }
            protected SynchronizationEntry(ColumnSynchronizationManager owner, SynchronizationKey key)
            {
                if (owner == null)
                {
                    throw new ArgumentNullException("owner");
                }

                if (key == null)
                {
                    throw new ArgumentNullException("key");
                }

                m_owner = owner;
                m_key   = key;
            }
Exemple #7
0
        private void Desynchronize(SynchronizationKey key)
        {
            if (key == null)
            {
                return;
            }

            var collection = this.PairedColumns;

            SynchronizationEntry pair;

            if (!collection.TryGetValue(key, out pair))
            {
                return;
            }

            collection.Remove(key);
            pair.Desynchronize();
        }
      internal BoundColumn( SynchronizationKey key )
        : base( key )
      {
        if( key.MasterColumn == null )
          throw new ArgumentException( "The master column is not set.", "key" );

        m_bindings = BoundColumn.CreateBindings( key.MasterColumn ).ToArray();
      }
      protected SynchronizationEntry( SynchronizationKey key )
      {
        if( key == null )
          throw new ArgumentNullException( "key" );

        m_key = key;
      }
    private void Desynchronize( SynchronizationKey key )
    {
      if( key == null )
        return;

      var collection = this.PairedColumns;

      SynchronizationEntry pair;
      if( !collection.TryGetValue( key, out pair ) )
        return;

      collection.Remove( key );
      pair.Desynchronize();
    }
    private void Synchronize( SynchronizationKey key )
    {
      if( key == null )
        return;

      var collection = this.PairedColumns;

      SynchronizationEntry pair;
      if( !collection.TryGetValue( key, out pair ) )
      {
        if( key.MasterColumn != null )
        {
          pair = new BoundColumn( key );
        }
        else
        {
          pair = new UnboundColumn( key );
        }

        collection.Add( key, pair );
      }

      pair.Synchronize();
    }
 internal UnboundColumn( SynchronizationKey key )
   : base( key )
 {
   if( key.MasterColumn != null )
     throw new ArgumentException( "The master column should not be set.", "key" );
 }