Пример #1
1
        /// <exclude/>
        public Lookup(SerializationInfo serializationInfo, StreamingContext streamingContext)
        {
            int version = 0;

            if (SerializationVersionExists)
            {
                try
                {
                    version = serializationInfo.GetInt32("SerializationVersion");
                }
                catch (SerializationException)
                {
                    // ignore
                    SerializationVersionExists = false;
                }
            }
            _alias = serializationInfo.GetString("Alias");
            _aliasPlural = serializationInfo.GetString("AliasPlural");
            _enabled = serializationInfo.GetBoolean("Enabled");
            _isUserDefined = serializationInfo.GetBoolean("IsUserDefined");
            _name = serializationInfo.GetString("Name");
            _userOptions = (List<IUserOption>)serializationInfo.GetValue("UserOptions", ModelTypes.UserOptionList);
            _description = serializationInfo.GetString("Description");
            _backingObject = (ScriptObject)serializationInfo.GetValue("BackingObject", ModelTypes.ScriptObject);
            _idColumn = (Column)serializationInfo.GetValue("IdColumn", ModelTypes.Column);
            _nameColumn = (Column)serializationInfo.GetValue("NameColumn", ModelTypes.Column);
            _LookupValues = (List<LookupValue>)serializationInfo.GetValue("LookupValues", ModelTypes.LookupValueList);
        }
Пример #2
0
 protected Shape(SerializationInfo Info, StreamingContext Context)
     : base(Info, Context)
 {
     Utils.Deserializing();
     this._IsSelected = Info.GetBoolean("IsSelected");
     this._IsVisible = Info.GetBoolean("IsVisible");
 }
Пример #3
0
        /// <exclude/>
        public LookupValue(SerializationInfo serializationInfo, StreamingContext streamingContext)
        {
            int version = 0;

            if (SerializationVersionExists)
            {
                try
                {
                    version = serializationInfo.GetInt32("SerializationVersion");
                }
                catch (SerializationException)
                {
                    // ignore
                    SerializationVersionExists = false;
                }
            }
            _alias = serializationInfo.GetString("Alias");
            _aliasPlural = serializationInfo.GetString("AliasPlural");
            _enabled = serializationInfo.GetBoolean("Enabled");
            _isUserDefined = serializationInfo.GetBoolean("IsUserDefined");
            _name = serializationInfo.GetString("Name");
            _userOptions = (List<IUserOption>)serializationInfo.GetValue("UserOptions", ModelTypes.UserOptionList);
            _id = serializationInfo.GetValue("Id", ModelTypes.Object);
            _description = serializationInfo.GetString("Description");
            _Parent = (Lookup)serializationInfo.GetValue("Parent", ModelTypes.Lookup);
        }
    // -------------------------------------------------------------------
    /// <summary>
    /// Deserialization constructor
    /// </summary>
    /// <param name="info">The info.</param>
    /// <param name="context">The context.</param>
    // -------------------------------------------------------------------
    protected SimpleShapeBase(
        SerializationInfo info,
        StreamingContext context)
      : base(info, context) {

      if (Tracing.BinaryDeserializationSwitch.Enabled) {
        Trace.WriteLine(
            "Deserializing the fields of 'SimpleShapeBase'.");
      }

      double version = info.GetDouble("SimpleShapeBaseVersion");

      mText = info.GetString("Text");
      mAutoSize = info.GetBoolean("AutoSize");
      mAllowTextEditing = info.GetBoolean("AllowTextEditing");
      mEditTextClicks = info.GetInt32("EditTextClicks");

      mTextArea = (Rectangle)info.GetValue(
          "TextArea",
          typeof(Rectangle));

      mTextStyle = (ITextStyle)info.GetValue(
          "TextStyle",
          typeof(ITextStyle));
    }
 private HtmlUrlExtractor(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     this.TagA = info.GetBoolean("tagA");
     this.TagImg = info.GetBoolean("tagImg");
     this.imgTypes = info.GetString("imgTypes");
 }
		public virtual object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
		{
			Diagram diagram = (Diagram) obj;

			diagram.SuspendEvents = true;
			diagram.Suspend();
			
			mShapes = (Elements) info.GetValue("Shapes",typeof(Elements));
			mLines = (Elements) info.GetValue("Lines",typeof(Elements));
			mLayers = (Layers) info.GetValue("Layers",typeof(Layers));
			
			//Diagram is created without a constructor, so need to do some initialization
			diagram.SetRender(new Render());

			diagram.DiagramSize = Serialize.GetSize(info.GetString("DiagramSize"));
			diagram.Zoom = info.GetSingle("Zoom");
			diagram.ShowTooltips = info.GetBoolean("ShowTooltips");
			diagram.Paged = info.GetBoolean("Paged");
			diagram.CheckBounds = info.GetBoolean("CheckBounds");
			diagram.Margin = (Margin) info.GetValue("Margin",typeof(Margin));
			diagram.WorkspaceColor = Color.FromArgb(Convert.ToInt32(info.GetString("WorkspaceColor")));
			if (Serialize.Contains(info,"Animator", typeof(Animator))) diagram.Animator = (Animator) info.GetValue("Animator", typeof(Animator));

			diagram.Resume();
			diagram.SuspendEvents = false;
			return diagram;
		}
    // -------------------------------------------------------------------
    /// <summary>
    /// Deserialization constructor
    /// </summary>
    /// <param name="info">The info.</param>
    /// <param name="context">The context.</param>
    // -------------------------------------------------------------------
    protected ShapeBase(
        SerializationInfo info,
        StreamingContext context)
      : base(info, context) {
      if (Tracing.BinaryDeserializationSwitch.Enabled) {
        Trace.WriteLine("Deserializing the fields of 'ShapeBase'.");
      }

      double version = info.GetDouble("ShapeBaseVersion");

      mConnectors = new CollectionBase<IConnector>();

      //transform to the new bounding rectangle
      Transform(
          (Rectangle)info.GetValue("Rectangle", typeof(Rectangle))
      );

      this.mConnectors = info.GetValue(
          "Connectors",
          typeof(CollectionBase<IConnector>)) as
          CollectionBase<IConnector>;

      mShowConnectors = info.GetBoolean("ShowConnectors");
      mIsFixed = info.GetBoolean("IsFixed");
    }
Пример #8
0
 private GeoDisplayPolygonRegion(SerializationInfo info, StreamingContext context)
 {
     if (ProjectSingleton.Instance.OpenV3R5ProjectFile)
     {
         base.m_Comments = info.GetString("m_Remark");
         this.m_Region = new GeoPolygonRegion();
         this.m_Region.ID = info.GetInt32("m_ID");
         this.m_Region.Name = info.GetString("m_Name");
         this.m_Region.SelectedForPrint = info.GetBoolean("m_SelectedForPrint");
         this.m_Region.GeoPolygonList = info.GetValue("m_GeoPolygonList", typeof(List<GeoPolygon>)) as List<GeoPolygon>;
         GeoPolygonStyle style = GeoEntityStyleFactory.GenerateDefaultPolygonStyle();
         style.LineWidth = info.GetSingle("m_LineWidth");
         style.LineDashStyle = (DashStyle) info.GetValue("m_LineType", typeof(DashStyle));
         style.Color = (Color) info.GetValue("m_LineColor", typeof(Color));
         style.FillColor = (Color) info.GetValue("m_RegionColor", typeof(Color));
         style.Visible = info.GetBoolean("m_Visible");
         style.IsShowLabel = info.GetBoolean("m_IsShownPolygonName");
         base.m_Style = style;
     }
     else
     {
         base.BuildBaseClassFromV3R6(info, context);
         this.m_Region = info.GetValue("m_Region", typeof(GeoPolygonRegion)) as GeoPolygonRegion;
     }
 }
 private CSharpSerializableCompilationOptions(SerializationInfo info, StreamingContext context)
 {
     this.options = new CSharpCompilationOptions(
         outputKind: (OutputKind)info.GetInt32(OutputKindString),
         moduleName: info.GetString(ModuleNameString),
         mainTypeName: info.GetString(MainTypeNameString),
         scriptClassName: info.GetString(ScriptClassNameString),
         usings: (string[])info.GetValue(UsingsString, typeof(string[])),
         cryptoKeyContainer: info.GetString(CryptoKeyContainerString),
         cryptoKeyFile: info.GetString(CryptoKeyFileString),
         delaySign: (bool?)info.GetValue(DelaySignString, typeof(bool?)),
         optimizationLevel: (OptimizationLevel)info.GetInt32(OptimizeString),
         checkOverflow: info.GetBoolean(CheckOverflowString),
         allowUnsafe: info.GetBoolean(AllowUnsafeString),
         fileAlignment: info.GetInt32(FileAlignmentString),
         baseAddress: info.GetUInt64(BaseAddressString),
         platform: (Platform)info.GetInt32(PlatformString),
         generalDiagnosticOption: (ReportDiagnostic)info.GetInt32(GeneralDiagnosticOptionString),
         warningLevel: info.GetInt32(WarningLevelString),
         specificDiagnosticOptions: ((Dictionary<string, ReportDiagnostic>)info.GetValue(SpecificDiagnosticOptionsString, typeof(Dictionary<string, ReportDiagnostic>))).ToImmutableDictionary(),
         highEntropyVirtualAddressSpace: info.GetBoolean(HighEntropyVirtualAddressSpaceString),
         subsystemVersion: SubsystemVersion.Create(info.GetInt32(SubsystemVersionMajorString), info.GetInt32(SubsystemVersionMinorString)),
         runtimeMetadataVersion: info.GetString(RuntimeMetadataVersionString),
         concurrentBuild: info.GetBoolean(ConcurrentBuildString),
         xmlReferenceResolver: XmlFileResolver.Default,
         sourceReferenceResolver: SourceFileResolver.Default,
         metadataReferenceResolver: MetadataFileReferenceResolver.Default,
         metadataReferenceProvider: MetadataFileReferenceProvider.Default,
         assemblyIdentityComparer: DesktopAssemblyIdentityComparer.Default,
         strongNameProvider: new DesktopStrongNameProvider(),
         metadataImportOptions: (MetadataImportOptions)info.GetByte(MetadataImportOptionsString),
         features: ((string[])info.GetValue(FeaturesString, typeof(string[]))).AsImmutable());
 }
 protected WebProxy(SerializationInfo serializationInfo, StreamingContext streamingContext)
 {
     bool boolean = false;
     try
     {
         boolean = serializationInfo.GetBoolean("_UseRegistry");
     }
     catch
     {
     }
     if (boolean)
     {
         ExceptionHelper.WebPermissionUnrestricted.Demand();
         this.UnsafeUpdateFromRegistry();
     }
     else
     {
         this._ProxyAddress = (Uri) serializationInfo.GetValue("_ProxyAddress", typeof(Uri));
         this._BypassOnLocal = serializationInfo.GetBoolean("_BypassOnLocal");
         this._BypassList = (ArrayList) serializationInfo.GetValue("_BypassList", typeof(ArrayList));
         try
         {
             this.UseDefaultCredentials = serializationInfo.GetBoolean("_UseDefaultCredentials");
         }
         catch
         {
         }
     }
 }
 private CSharpSerializableCompilationOptions(SerializationInfo info, StreamingContext context)
 {
     _options = new CSharpCompilationOptions(
         outputKind: (OutputKind)info.GetInt32(OutputKindString),
         moduleName: info.GetString(ModuleNameString),
         mainTypeName: info.GetString(MainTypeNameString),
         scriptClassName: info.GetString(ScriptClassNameString),
         usings: (string[])info.GetValue(UsingsString, typeof(string[])),
         cryptoKeyContainer: info.GetString(CryptoKeyContainerString),
         cryptoKeyFile: info.GetString(CryptoKeyFileString),
         delaySign: (bool?)info.GetValue(DelaySignString, typeof(bool?)),
         optimizationLevel: (OptimizationLevel)info.GetInt32(OptimizeString),
         checkOverflow: info.GetBoolean(CheckOverflowString),
         allowUnsafe: info.GetBoolean(AllowUnsafeString),
         platform: (Platform)info.GetInt32(PlatformString),
         generalDiagnosticOption: (ReportDiagnostic)info.GetInt32(GeneralDiagnosticOptionString),
         warningLevel: info.GetInt32(WarningLevelString),
         specificDiagnosticOptions: ((Dictionary<string, ReportDiagnostic>)info.GetValue(SpecificDiagnosticOptionsString, typeof(Dictionary<string, ReportDiagnostic>))).ToImmutableDictionary(),
         concurrentBuild: info.GetBoolean(ConcurrentBuildString),
         extendedCustomDebugInformation: info.GetBoolean(ExtendedCustomDebugInformationString),
         xmlReferenceResolver: XmlFileResolver.Default,
         sourceReferenceResolver: SourceFileResolver.Default,
         metadataReferenceResolver: new AssemblyReferenceResolver(MetadataFileReferenceResolver.Default, MetadataFileReferenceProvider.Default),
         assemblyIdentityComparer: DesktopAssemblyIdentityComparer.Default,
         strongNameProvider: new DesktopStrongNameProvider(),
         metadataImportOptions: (MetadataImportOptions)info.GetByte(MetadataImportOptionsString),
         features: ((string[])info.GetValue(FeaturesString, typeof(string[]))).AsImmutable());
 }
Пример #12
0
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <param name="info">SerializationInfo</param>
 /// <param name="context">StreamingContext</param>
 protected UrlExtractor(SerializationInfo info,StreamingContext context)
 {
     this.rulers = info.GetValue("rulers", typeof(UrlRulerCollection)) as UrlRulerCollection;
     this.onlySameDomain = info.GetBoolean("onlySameDomain");
     this.onlySameHost = info.GetBoolean("onlySameHost");
     this.extractFinal = info.GetBoolean("extractFinal");
 }
 public AttributePointSetting(SerializationInfo info, StreamingContext ctxt)
 {
     this.Attribute = (FixtureAttribute)info.GetValue("Attribute", typeof(FixtureAttribute));
     _value = info.GetInt32("_value");
     this.Snap = info.GetBoolean("Snap");
     _active = info.GetBoolean("_active");
 }
Пример #14
0
 public PixelLink(SerializationInfo info, StreamingContext context)
 {
     Path = info.GetString("Path");
     Title = info.GetString("Title");
     IncludeMapsInProject = info.GetBoolean("IncludeMapsInProject");
     ProjectFileOnly = info.GetBoolean("ProjectFileOnly");
     CreateFolders = info.GetBoolean("CreateFolders");
 }
Пример #15
0
 /// <summary>
 /// Deserialization constructor
 /// </summary>
 public Settings(SerializationInfo info, StreamingContext context)
 {
     _steamFolder = info.GetString("SteamFolder");
     _addonFolder = info.GetString("AddonFolder");
     ShowScriptErrors = info.GetBoolean("ShowScriptErrors");
     EmptyWorld = info.GetBoolean("EmptyWorld");
     NoSplash = info.GetBoolean("NoSplash");
 }
Пример #16
0
 /// <inheritdoc/>
 protected RangeException(SerializationInfo info, StreamingContext context)
     : base(info, context) {
     _actual = info.GetString("Actual");
     _low = info.GetString("Low");
     _lowInclusive = info.GetBoolean("LowInclusive");
     _high = info.GetString("High");
     _highInclusive = info.GetBoolean("HighInclusive");
 }
Пример #17
0
 private DeclareVariableStatement(SerializationInfo info, StreamingContext context)
 {
     VariableName = info.GetString("Variable");
     VariableType = (SqlType) info.GetValue("Type", typeof (SqlType));
     IsConstant = info.GetBoolean("Constant");
     IsNotNull = info.GetBoolean("NotNull");
     DefaultExpression = (SqlExpression) info.GetValue("Default", typeof (SqlExpression));
 }
Пример #18
0
 private SqlTableColumn(SerializationInfo info, StreamingContext context)
 {
     ColumnName = info.GetString("ColumnName");
     ColumnType = (SqlType) info.GetValue("ColumnType", typeof(SqlType));
     IsIdentity = info.GetBoolean("IsIdentity");
     IsNotNull = info.GetBoolean("IsNotNull");
     DefaultExpression = (SqlExpression) info.GetValue("Default", typeof(SqlExpression));
     IndexType = info.GetString("IndexType");
 }
Пример #19
0
		private ProxyGenerationOptions (SerializationInfo info, StreamingContext context)
		{
			hook = (IProxyGenerationHook) info.GetValue ("hook", typeof (IProxyGenerationHook));
			selector = (IInterceptorSelector) info.GetValue ("selector", typeof (IInterceptorSelector));
			mixins = (List<object>) info.GetValue ("mixins", typeof (List<object>));
			baseTypeForInterfaceProxy = Type.GetType (info.GetString ("baseTypeForInterfaceProxy.AssemblyQualifiedName"));
			useSingleInterfaceProxy = info.GetBoolean ("useSingleInterfaceProxy");
			useSelector = info.GetBoolean ("useSelector");
		}
Пример #20
0
 public N_Particle(SerializationInfo sinfo, StreamingContext scon)
 {
     particleindex = sinfo.GetInt32("particleindex");
     ismovingboundary = sinfo.GetBoolean("ismovingboundary");
     isstationaryboundary = sinfo.GetBoolean("isstationaryboundary");
     distance = sinfo.GetSingle("distance");
     smoothingkernel = sinfo.GetSingle("smoothingkernel");
     smoothingkernelsquared = sinfo.GetSingle("smoothingkernelsquared");
 }
Пример #21
0
        /// <summary>
        /// Constructor: Deserialises the information and recreates the instance.
        /// </summary>
        /// <param name="info">Standard <c>SerializationInfo</c> object</param>
        /// <param name="ctxt">Standard <c>StreamingContext</c> object</param>
        public PingRsp(SerializationInfo info, StreamingContext ctxt)
        {
            bool b_own_addr = info.GetBoolean("b_own_addr");
            if (b_own_addr)
                own_addr = (Address)info.GetValue("own_addr",typeof(object));

            bool b_coord_addr = info.GetBoolean("b_coord_addr");
            if (b_coord_addr)
                coord_addr = (Address)info.GetValue("coord_addr",typeof(object));
        }
Пример #22
0
 private CreateTypeStatement(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     TypeName = (ObjectName)info.GetValue("TypeName", typeof(ObjectName));
     Members = (UserTypeMember[])info.GetValue("Members", typeof(UserTypeMember[]));
     ReplaceIfExists = info.GetBoolean("Replace");
     IsSealed = info.GetBoolean("Sealed");
     IsAbstract = info.GetBoolean("Abstract");
     ParentTypeName = (ObjectName) info.GetValue("ParentType", typeof(ObjectName));
 }
Пример #23
0
 protected KnowledgeBaseItem(SerializationInfo info, StreamingContext context)
 {
     this.Filename = info.GetString("fn");
     this.Fullpath = info.GetString("fp");
     this.Used = info.GetBoolean("u");
     this.Trusted = info.GetBoolean("t");
     this.Build = info.GetInt32("b");
     this.Info = null;
     //use a try/catch block around any new vales
 }
Пример #24
0
            public Credentials(SerializationInfo info, StreamingContext context)
            {
                int version = 0;

                try
                {
                    version = info.GetInt32("version");
                }

                catch { }

                if (version == 0)
                {
                    Host = info.GetString("m_Host");
                    Port = info.GetInt32("m_Port");
                    WorkspaceID = info.GetUInt64("m_ID");
                    WorkspaceName = info.GetString("m_Name");
                    UserName = info.GetString("m_UserName");
                    UserSmtp = info.GetString("m_UserSmtp");
                    Nonce = (byte[])info.GetValue("m_Nonce", (new byte[] { }).GetType());
                    Type = (Credentials.CredType)Enum.Parse(typeof(CredType), info.GetString("m_type"));
                    Password = info.GetString("m_pwd");
                    Ticket = (byte[])info.GetValue("m_ticket", (new byte[] { }).GetType());
                    IsAdmin = info.GetBoolean("m_IsAdmin");
                    UserID = info.GetUInt32("m_UserId");
                }

                else
                {
                    Host = info.GetString("Host");
                    Port = info.GetInt32("Port");
                    WorkspaceID = info.GetUInt64("ID");
                    WorkspaceName = info.GetString("Name");
                    UserName = info.GetString("UserName");
                    UserSmtp = info.GetString("UserSmtp");
                    Nonce = (byte[])info.GetValue("Nonce", (new byte[] { }).GetType());
                    Type = (Credentials.CredType)Enum.Parse(typeof(CredType), info.GetString("Type"));
                    Password = info.GetString("Password");
                    Ticket = (byte[])info.GetValue("Ticket", (new byte[] { }).GetType());
                    IsAdmin = info.GetBoolean("IsAdmin");
                    UserID = info.GetUInt32("UserID");
                    if (version == 2) IsPublic = info.GetBoolean("IsPublic");
                }

                newCreds.KasID = new KasIdentifier(Host, (UInt16)Port);
                newCreds.ExternalID = WorkspaceID;
                newCreds.KwsName = WorkspaceName;
                newCreds.UserName = UserName;
                newCreds.UserEmailAddress = UserSmtp;
                newCreds.AdminFlag = IsAdmin;
                newCreds.PublicFlag = IsPublic;
                newCreds.UserID = UserID;
                newCreds.Ticket = Ticket;
                newCreds.Pwd = Password;
            }
 /// <summary>
 /// Serializing constructor
 /// </summary>
 ScreenshotSettings(SerializationInfo info, StreamingContext context)
 {
   Directory = info.GetString("_directory");
   FileName = info.GetString("_fileName");
   FileExtension = info.GetString("_fileExtension");
   _fovX = info.GetSingle("_fovX");
   UseCustomViewport = info.GetBoolean("_useCustomViewport");
   _viewportHeight = info.GetInt32("_viewportHeight");
   _viewportWidth = info.GetInt32("_viewportWidth");
   OpenExternally = info.GetBoolean("_openExternally");
 }
Пример #26
0
        protected ArchiveJob(SerializationInfo info, StreamingContext context)
        {
            var haveUid = info.GetBoolean("uidf");
            JobUID = haveUid ? info.GetInt32("uid"): (int?) null;

            UniqueJobName = info.GetString("name");
            JobRootPath = info.GetString("path");
            Active = info.GetBoolean("active");
            JobTarget = (Target)info.GetValue("target", typeof(Target));
            Schedules = (List<JobSchedule>)info.GetValue("schedules", typeof(List<JobSchedule>));
        }
Пример #27
0
		/// <summary>
		/// Deserializes an XshdColor.
		/// </summary>
		protected XshdColor(SerializationInfo info, StreamingContext context)
		{
			if (info == null)
				throw new ArgumentNullException("info");
			this.Name = info.GetString("Name");
			this.Foreground = (HighlightingBrush)info.GetValue("Foreground", typeof(HighlightingBrush));
			if (info.GetBoolean("HasWeight"))
				this.FontWeight = System.Windows.FontWeight.FromOpenTypeWeight(info.GetInt32("Weight"));
			if (info.GetBoolean("HasStyle"))
				this.FontStyle = (FontStyle?)new FontStyleConverter().ConvertFromInvariantString(info.GetString("Style"));
		}
Пример #28
0
 private SimpleDiagnostic(SerializationInfo info, StreamingContext context)
 {
     this.id = info.GetString("id");
     this.category = info.GetString("category");
     this.message = info.GetString("message");
     this.severity = (DiagnosticSeverity)info.GetInt32("severity");
     this.isEnabledByDefault = info.GetBoolean("isEnabledByDefault");
     this.warningLevel = info.GetInt32("warningLevel");
     this.isWarningAsError = info.GetBoolean("isWarningAsError");
     this.location = (Location)info.GetValue("location", typeof(Location));
     this.additionalLocations = ((Location[])info.GetValue("additionalLocations", typeof(Location[]))).ToImmutableArrayOrEmpty();
 }
Пример #29
0
 public JumpPoint(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     JumpID = info.GetString("jumpID");
     TargetID = info.GetString("targetID");
     _target = Entity.Global(info.GetInt16("target"));
     _collider = Entity.Global(info.GetInt16("collider"));
     _locked = info.GetBoolean("locked");
     _collided = info.GetBoolean("collided");
     BodyShape = SaveLoadHelper.LoadRectangle(ref info, "bodyShape");
     MovingShape = SaveLoadHelper.LoadRectangle(ref info, "movingShape");
 }
        /// <summary>
        /// Deserialization constructor
        /// </summary>
        /// <param name="info">The info.</param>
        /// <param name="context">The context.</param>
        protected ShapeMaterialBase(SerializationInfo info, StreamingContext context)
        {
            if(Tracing.BinaryDeserializationSwitch.Enabled)
                Trace.WriteLine("Deserializing the fields of 'ShapeMaterialBase'.");

            this.mGliding = info.GetBoolean("Gliding");
            this.mResizable = info.GetBoolean("Resizable");
            this.Transform(
                  (Rectangle) info.GetValue("Rectangle", typeof(Rectangle))
                );
            this.mVisible = info.GetBoolean("Visible");
        }
Пример #31
0
 public ColumnExpression(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _ColumnName = info.GetString("_ColumnName");
     }
     catch
     {
         _ColumnName = string.Empty;
     }
     try
     {
         _SQLStatement = info.GetString("_SQLStatement");
     }
     catch
     {
         _SQLStatement = string.Empty;
     }
     try
     {
         _IsExpression = info.GetBoolean("_IsExpression");
     }
     catch
     {
         _IsExpression = false;
     }
 }
Пример #32
0
 public HeaderCell(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _Row = info.GetInt32("_Row");
     }
     catch
     {
         _Row = 0;
     }
     try
     {
         _Col = info.GetInt32("_Col");
     }
     catch
     {
         _Col = 0;
     }
     try
     {
         _Text = info.GetString("_Text");
     }
     catch
     {
         _Text = string.Empty;
     }
     try
     {
         _MergerdIndex = info.GetInt32("_MergerdIndex");
     }
     catch
     {
         _MergerdIndex = 0;
     }
     try
     {
         _MergerdCount = info.GetInt32("_MergerdCount");
     }
     catch
     {
         _MergerdCount = 0;
     }
     try
     {
         _ChangeStyle = info.GetBoolean("_ChangeStyle");
     }
     catch
     {
         _ChangeStyle = false;
     }
     try
     {
         _CellStyle = (Webb.Reports.ExControls.IBasicStyle)info.GetValue("_CellStyle", typeof(Webb.Reports.ExControls.IBasicStyle));
     }
     catch
     {
         _CellStyle = new BasicStyle();
     }
 }
 public ContainerControlView(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
     try
     {
         _keepDistance = info.GetBoolean("_keepDistance");
     }
     catch
     {
         _keepDistance = false;
     }
 }
Пример #34
0
        public SectionGroupInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
        {
            try
            {
                _ShowZero = info.GetBoolean("_ShowZero");
            }
            catch
            {
                _ShowZero = true;
            }
            try
            {
                Visible = info.GetBoolean("Visible");
            }
            catch
            {
                Visible = true;
            }

            try
            {
                _SectionFilters = info.GetValue("_SectionFilters", typeof(SectionFilterCollection)) as SectionFilterCollection;
            }
            catch
            {
                _SectionFilters = new SectionFilterCollection();
            }

            //Modified at 2009-1-21 13:54:02@Scott
            try
            {
                this.SectionFiltersWrapper = info.GetValue("SectionFiltersWrapper", typeof(SectionFilterCollectionWrapper)) as SectionFilterCollectionWrapper;
            }
            catch
            {
                //this.SectionFiltersWrapper = new SectionFilterCollectionWrapper();
            }
        }
Пример #35
0
 public TableExpression(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _SQLStatement = info.GetString("_SQLStatement");
     }
     catch
     {
         _SQLStatement = string.Empty;
     }
     try
     {
         _TableName = info.GetString("_TableName");
     }
     catch
     {
         _TableName = string.Empty;
     }
     try
     {
         _SourceTables = (System.Collections.ArrayList)info.GetValue("_SourceTables", typeof(System.Collections.ArrayList));
     }
     catch
     {
     }
     try
     {
         _Fields = (System.Collections.ArrayList)info.GetValue("_Fields", typeof(System.Collections.ArrayList));
     }
     catch
     {
     }
     try
     {
         _Relations = (Webb.Data.DBFilter)info.GetValue("_Relations", typeof(Webb.Data.DBFilter));
     }
     catch
     {
     }
     try
     {
         _IsExpression = info.GetBoolean("_IsExpression");
     }
     catch
     {
         _IsExpression = false;
     }
 }
Пример #36
0
 public AdvUserRights(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _All = info.GetBoolean("_All");
     }
     catch
     {
         _All = true;
     }
     try
     {
         _Users = (System.Collections.Specialized.StringCollection)info.GetValue("_Users", typeof(System.Collections.Specialized.StringCollection));
     }
     catch
     {
         _Users = new StringCollection();
     }
 }
Пример #37
0
 public PageFieldInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
     try
     {
         _Field = (string)info.GetValue("_Field", typeof(string));
     }
     catch
     {
         _Field = string.Empty;
     }
     try
     {
         _OtherName = (string)info.GetValue("_OtherName", typeof(string));
     }
     catch
     {
         _OtherName = "Other";
     }
     try
     {
         _TotalOther = info.GetBoolean("_TotalOther");
     }
     catch
     {
         _TotalOther = false;
     }
     try
     {
         _TotalType = (TotalType)info.GetValue("_TotalType", typeof(TotalType));
     }
     catch
     {
         _TotalType = TotalType.None;
     }
     try
     {
         this._TotalName = (string)info.GetValue("_TotalName", typeof(string));
     }
     catch
     {
         _TotalName = "All";
     }
 }
Пример #38
0
 public ReportHeaderStyle(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         styleName = info.GetString("styleName");
     }
     catch
     {
         styleName = string.Empty;
     }
     try
     {
         font = (System.Drawing.Font)info.GetValue("font", typeof(System.Drawing.Font));
     }
     catch
     {
         font = new Font("Tahoma", 18, FontStyle.Bold);
     }
     try
     {
         textColor = (System.Drawing.Color)info.GetValue("textColor", typeof(System.Drawing.Color));
     }
     catch
     {
         textColor = Color.Black;
     }
     try
     {
         backColor = (System.Drawing.Color)info.GetValue("backColor", typeof(System.Drawing.Color));
     }
     catch
     {
         backColor = Color.LightSkyBlue;
     }
     try
     {
         showBorder = info.GetBoolean("showBorder");
     }
     catch
     {
         showBorder = false;
     }
 }
Пример #39
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Group"/> class.
 /// </summary>
 /// <param name="info">The serialization Info.</param>
 /// <param name="context">The streaming context.</param>
 /// <summary>
 /// Serialization constructor for symbols.
 /// </summary>
 /// <param name="info">Serialization state information</param>
 /// <param name="context">Streaming context information</param>
 public EmpSymbol(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     m_bExpanded = info.GetBoolean("isExpanded");
 }
Пример #40
0
 public MaskInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         this._VerticalAlignment = (DevExpress.Utils.VertAlignment)info.GetValue("_VerticalAlignment", typeof(DevExpress.Utils.VertAlignment));
     }
     catch
     {
         _VerticalAlignment = VertAlignment.Bottom;
     }
     try
     {
         _TitleFont = (System.Drawing.Font)info.GetValue("_TitleFont", typeof(System.Drawing.Font));
     }
     catch
     {
         _TitleFont = new Font(AppearanceObject.DefaultFont.FontFamily, 10f);
     }
     try
     {
         _TitleTextColor = (System.Drawing.Color)info.GetValue("_TitleTextColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _TitleTextColor = Color.Black;
     }
     try
     {
         _TitleBackColor = (System.Drawing.Color)info.GetValue("_TitleBackColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _TitleBackColor = Color.Transparent;
     }
     try
     {
         _Title = info.GetString("_Title");
     }
     catch
     {
         _Title = string.Empty;
     }
     try
     {
         _DateFormat = info.GetString("_DateFormat");
     }
     catch
     {
         _DateFormat = @"M/d/yy";
     }
     try
     {
         _TitleAlignment = (DevExpress.Utils.HorzAlignment)info.GetValue("_TitleAlignment", typeof(DevExpress.Utils.HorzAlignment));
     }
     catch
     {
         _TitleAlignment = HorzAlignment.Center;
     }
     try
     {
         _MaskedField = info.GetString("_MaskedField");
     }
     catch
     {
         _MaskedField = string.Empty;
     }
     try
     {
         _MaskedFont = (System.Drawing.Font)info.GetValue("_MaskedFont", typeof(System.Drawing.Font));
     }
     catch
     {
         _MaskedFont = new Font(AppearanceObject.DefaultFont.FontFamily, 10f);
     }
     try
     {
         _MaskedWidth = info.GetInt32("_MaskedWidth");
     }
     catch
     {
         _MaskedWidth = 55;
     }
     try
     {
         this._MaskedTextColor = (System.Drawing.Color)info.GetValue("_MaskedTextColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _MaskedTextColor = Color.Black;
     }
     try
     {
         this._MaskedBackColor = (System.Drawing.Color)info.GetValue("_MaskedBackColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _MaskedBackColor = Color.Transparent;
     }
     try
     {
         this._MaskedAlignment = (DevExpress.Utils.HorzAlignment)info.GetValue("_MaskedAlignment", typeof(DevExpress.Utils.HorzAlignment));
     }
     catch
     {
         _MaskedAlignment = HorzAlignment.Center;
     }
     try
     {
         this._TitleWidth = info.GetInt32("_TitleWidth");
     }
     catch
     {
         _TitleWidth = 55;
     }
     try
     {
         this._ShowTitle = info.GetBoolean("_ShowTitle");
     }
     catch
     {
         _ShowTitle = true;
     }
     try
     {
         this._ShowUnderLine = info.GetBoolean("_ShowUnderLine");
     }
     catch
     {
         this._ShowUnderLine = true;
     }
     try
     {
         this._BrotherMaskInfos = (MaskInfoCollection)info.GetValue("_BrotherMaskInfos", typeof(MaskInfoCollection));
     }
     catch
     {
         _BrotherMaskInfos = new MaskInfoCollection();
     }
 }
Пример #41
0
 public RepeatControlView(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
     try
     {
         _AfterLast = info.GetBoolean("_AfterLast");
     }
     catch
     {
         _AfterLast = false;
     }
     try
     {
         _RepeatSetting = (Webb.Reports.PageGroupInfo)info.GetValue("_RepeatSetting", typeof(Webb.Reports.PageGroupInfo));
     }
     catch
     {
         _RepeatSetting = new PageFieldInfo("");
     }
     try
     {
         _RepeatedWidth = info.GetSingle("_RepeatedWidth");
     }
     catch
     {
         _RepeatedWidth = 240f;
     }
     try
     {
         _RepeatedHeight = info.GetSingle("_RepeatedHeight");
     }
     catch
     {
         _RepeatedHeight = 240f;
     }
     try
     {
         _RepeatedCount = info.GetInt32("_RepeatedCount");
     }
     catch
     {
         _RepeatedCount = 3;
     }
     try
     {
         _RepeatedVerticalCount = info.GetInt32("_RepeatedVerticalCount");
     }
     catch
     {
         _RepeatedVerticalCount = 3;
     }
     try
     {
         _RepeatTopCount = info.GetInt32("_RepeatTopCount");
     }
     catch
     {
         _RepeatTopCount = 0;
     }
     try
     {
         _ChartColorWhenMax = (System.Drawing.Color)info.GetValue("_ChartColorWhenMax", typeof(System.Drawing.Color));
     }
     catch
     {
         _ChartColorWhenMax = Color.Empty;
     }
 }
Пример #42
0
        public PageGroupInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
            try
            {
                _PageValueCount = info.GetInt32("_PageValueCount");
            }
            catch
            {
                _PageValueCount = 1;
            }
            try
            {
                _SortingType = (Webb.Reports.SortTypes)info.GetValue("_SortingType", typeof(Webb.Reports.SortTypes));
            }
            catch
            {
            }
            try
            {
                _SortingByType = (Webb.Reports.SortByTypes)info.GetValue("_SortingByType", typeof(Webb.Reports.SortByTypes));
            }
            catch
            {
            }
            try
            {
                _GroupTitle = info.GetString("_GroupTitle");
            }
            catch
            {
                _GroupTitle = string.Empty;
            }
            try
            {
                _SkippedCount = info.GetInt32("_SkippedCount");
            }
            catch
            {
                _SkippedCount = 0;
            }
            try
            {
                _TopCount = info.GetInt32("_TopCount");
            }
            catch
            {
                _TopCount = 0;
            }
            try
            {
                _Repeat = info.GetBoolean("_Repeat");
            }
            catch
            {
                _Repeat = false;
            }
            try
            {
                _RepeatTitle = info.GetString("_RepeatTitle");
            }
            catch
            {
                _RepeatTitle = string.Empty;
            }
            try
            {
                _SubPageGroupInfos = (Webb.Reports.PageGroupCollection)info.GetValue("_SubPageGroupInfos", typeof(Webb.Reports.PageGroupCollection));
            }
            catch
            {
            }
            try
            {
                _ParentPageGroupInfo = (Webb.Reports.PageGroupInfo)info.GetValue("_ParentPageGroupInfo", typeof(Webb.Reports.PageGroupInfo));
            }
            catch
            {
            }
            try
            {
                _ReportScType = (Webb.Reports.ReportScType)info.GetValue("_ReportScType", typeof(Webb.Reports.ReportScType));
            }
            catch
            {
            }
            try
            {
                _Filter = (Webb.Data.DBFilter)info.GetValue("_Filter", typeof(Webb.Data.DBFilter));

                this._Filter = AdvFilterConvertor.GetAdvFilter(DataProvider.VideoPlayBackManager.AdvReportFilters, this._Filter);                  //2009-4-29 11:37:37@Simon Add UpdateAdvFilter
            }
            catch
            {
                _Filter = new DBFilter();
            }
        }
Пример #43
0
 public HeaderGameInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         styleName = info.GetString("styleName");
     }
     catch
     {
         styleName = string.Empty;
     }
     try
     {
         _FirstObjectOnly = info.GetBoolean("_FirstObjectOnly");
     }
     catch
     {
         _FirstObjectOnly = false;
     }
     try
     {
         _Multiline = info.GetBoolean("_Multiline");
     }
     catch
     {
         _Multiline = false;
     }
     try
     {
         _Date = info.GetBoolean("_Date");
     }
     catch
     {
         _Date = true;
     }
     try
     {
         _Object = info.GetBoolean("_Object");
     }
     catch
     {
         _Object = true;
     }
     try
     {
         _Location = info.GetBoolean("_Location");
     }
     catch
     {
         _Location = true;
     }
     try
     {
         _ScoutType = info.GetBoolean("_ScoutType");
     }
     catch
     {
         _ScoutType = true;
     }
     try
     {
         _Title = info.GetBoolean("_Title");
     }
     catch
     {
         _Title = false;
     }
     try
     {
         _WordWrap = info.GetBoolean("_WordWrap");
     }
     catch
     {
         _WordWrap = true;
     }
     try
     {
         _Opponent = info.GetBoolean("_Opponent");
     }
     catch
     {
         _Opponent = true;
     }
 }
Пример #44
0
 public ReportWizardSetting(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _CategoryDataType = info.GetByte("_CategoryDataType");
     }
     catch
     {
         _CategoryDataType = 0;
     }
     try
     {
         _TemplateType = info.GetByte("_TemplateType");
     }
     catch
     {
         _TemplateType = 0;
     }
     try
     {
         _AddScFilters = info.GetBoolean("_AddScFilters");
     }
     catch
     {
         _AddScFilters = false;
     }
     try
     {
         _AddWatermark = info.GetBoolean("_AddWatermark");
     }
     catch
     {
         _AddWatermark = false;
     }
     try
     {
         _SelectedStyleName = info.GetString("_SelectedStyleName");
     }
     catch
     {
         _SelectedStyleName = string.Empty;
     }
     try
     {
         _GroupTemplateType = info.GetByte("_GroupTemplateType");
     }
     catch
     {
         _GroupTemplateType = 0;
     }
     try
     {
         _CreateByWizard = info.GetBoolean("_CreateByWizard");
     }
     catch
     {
         _CreateByWizard = false;
     }
     try
     {
         _HeaderStyleName = info.GetString("_HeaderStyleName");
     }
     catch
     {
         _HeaderStyleName = string.Empty;
     }
     try
     {
         _GameListStyleName = info.GetString("_GameListStyleName");
     }
     catch
     {
         _GameListStyleName = string.Empty;
     }
     try
     {
         _ProductTypes = info.GetInt32("_ProductTypes");
     }
     catch
     {
         _ProductTypes = (int)WebbDBTypes.WebbAdvantageFootball;
     }
 }
Пример #45
0
 public ValueColor(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _LengthConnector = info.GetInt32("_LengthConnector");
     }
     catch
     {
         _LengthConnector = 0;
     }
     try
     {
         _Value = info.GetString("_Value");
     }
     catch
     {
         _Value = string.Empty;
     }
     try
     {
         _Color = (System.Drawing.Color)info.GetValue("_Color", typeof(System.Drawing.Color));
     }
     catch
     {
         _Color = Color.Empty;
     }
     try
     {
         _TextColor = (System.Drawing.Color)info.GetValue("_TextColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _TextColor = Color.Empty;
     }
     try
     {
         _RectBorderColor = (System.Drawing.Color)info.GetValue("_RectBorderColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _RectBorderColor = Color.Empty;
     }
     try
     {
         _Hidden = info.GetBoolean("_Hidden");
     }
     catch
     {
         _Hidden = false;
     }
     try
     {
         _GradientColor = (System.Drawing.Color)info.GetValue("_GradientColor", typeof(System.Drawing.Color));
     }
     catch
     {
         _GradientColor = Color.Empty;
     }
     try
     {
         _GradientAngle = info.GetSingle("_GradientAngle");
     }
     catch
     {
         _GradientAngle = 0f;
     }
 }
        public MaskedTextControlView(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
        {
            try
            {
                _SortingColumns = (SortingColumnCollection)info.GetValue("_SortingColumns", typeof(SortingColumnCollection));
            }
            catch
            {
                _SortingColumns = new SortingColumnCollection();
            }
            try
            {
                _AutoAdjustTitleSize = info.GetBoolean("_AutoAdjustTitleSize");
            }
            catch
            {
                _AutoAdjustTitleSize = true;
            }
            try
            {
                _MakeChanges = false;

                this._ColumnsWidth = info.GetValue("_ColumnsWidth", typeof(Int32Collection)) as Int32Collection;
            }
            catch
            {
                _MakeChanges = true;

                this._ColumnsWidth = new Int32Collection();
            }
            try
            {
                this._MaskInfoSetting = (Webb.Reports.ExControls.Data.MaskInfoCollection)info.GetValue("_MaskInfoSetting", typeof(Webb.Reports.ExControls.Data.MaskInfoCollection));
            }
            catch
            {
                _MaskInfoSetting = new MaskInfoCollection();
            }

            try
            {
                this._RowsHight = info.GetValue("_RowsHight", typeof(Int32Collection)) as Int32Collection;
            }
            catch
            {
                this._RowsHight = new Int32Collection();;
            }
            try
            {
                _IndexedRow = info.GetInt32("_IndexedRow");
            }
            catch
            {
                _IndexedRow = 0;
            }
            try
            {
                this._Filter = (DBFilter)info.GetValue("_AutoAdjustTitleSize", typeof(DBFilter));
            }
            catch
            {
                _Filter = new DBFilter();
            }
        }