Ejemplo n.º 1
0
 public DataTransformationsProjectConfigurationOptions GetBaseType()
 {
     DataTransformationsProjectConfigurationOptions basetype = new DataTransformationsProjectConfigurationOptions();
     Type type = typeof(DataTransformationsProjectConfigurationOptions);
     foreach (System.Reflection.PropertyInfo info in type.GetProperties())
     {
         if (info.GetSetMethod() != null)
         {
             object obj3 = info.GetValue(this, null);
             if (obj3 is ICloneable)
             {
                 obj3 = ((ICloneable)obj3).Clone();
             }
             info.SetValue(basetype, obj3, null);
         }
     }
     return basetype;
 }
Ejemplo n.º 2
0
            public DtsProjectExtendedConfigurationOptions(DataTransformationsProjectConfigurationOptions old)
            {
                try
                {
                    oldConfig = old;
                    Type type = old.GetType();
                    foreach (System.Reflection.PropertyInfo info in type.GetProperties())
                    {
                        if (info.GetSetMethod() != null)
                        {
                            object obj3 = info.GetValue(old, null);
                            if (obj3 is ICloneable)
                            {
                                obj3 = ((ICloneable)obj3).Clone();
                            }
                            this.GetType().InvokeMember(info.Name, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.SetProperty | System.Reflection.BindingFlags.FlattenHierarchy | System.Reflection.BindingFlags.Instance, null, this, new object[] { info.GetGetMethod().Invoke(old, null) });
                        }
                    }

                    this.Disposed += new EventHandler(DtsProjectExtendedConfigurationOptions_Disposed);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Problem opening configurations properties dialog.\r\n" + ex.Message + "\r\n" + ex.StackTrace);
                }
            }