protected ProxyObjectReference(SerializationInfo info, StreamingContext context)
		{
			// Deserialize the base type using its assembly qualified name
			string qualifiedName = info.GetString("__baseType");
			_baseType = System.Type.GetType(qualifiedName, true, false);

			// Rebuild the list of interfaces
			var interfaceList = new List<System.Type>();
			int interfaceCount = info.GetInt32("__baseInterfaceCount");
			for (int i = 0; i < interfaceCount; i++)
			{
				string keyName = string.Format("__baseInterface{0}", i);
				string currentQualifiedName = info.GetString(keyName);
				System.Type interfaceType = System.Type.GetType(currentQualifiedName, true, false);

				interfaceList.Add(interfaceType);
			}

			// Reconstruct the proxy
			var factory = new ProxyFactory();
			System.Type proxyType = factory.CreateProxyType(_baseType, interfaceList.ToArray());

			// Initialize the proxy with the deserialized data
			var args = new object[] {info, context};
			_proxy = (IProxy) Activator.CreateInstance(proxyType, args);
		}
Example #2
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);
        }
 /// <devdoc>
 /// </devdoc>
 /// <internalonly/>
 private EventLogEntry(SerializationInfo info, StreamingContext context) {
     dataBuf = (byte[])info.GetValue("DataBuffer", typeof(byte[]));
     string logName = info.GetString("LogName");
     string machineName = info.GetString("MachineName");
     owner = new EventLogInternal(logName, machineName, "");
     GC.SuppressFinalize(this);
 }
Example #4
0
 public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     Utility.SetFieldValue(ref obj, "_baseUrl", Utility.PrivateInstance, info.GetString("baseUrl"));
     Utility.SetFieldValue(ref obj, "_token", Utility.PrivateInstance, info.GetString("token"));
     Utility.SetFieldValue(ref obj, "_mapType", Utility.PrivateInstance, info.GetChar("mapType"));
     return obj;
 }
 protected SerializationWrapper(SerializationInfo info, StreamingContext context)
 {
     var typeName = info.GetString("Type");
     _type = Type.GetType(typeName);
     var xml = info.GetString("Item");
     _item = SerializeHelper.Deserialize(_type, xml);
 }
 private NonUniquePriorityException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _failedMapper = info.GetString("newMapper");
      _existingMapper = info.GetString("existingMapper");
      _priority = info.GetInt32("priority");
 }
Example #7
0
        public HorizontalGridColumn(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
            try
            {
                _Filter = info.GetValue("_Filter", typeof(DBFilter)) as DBFilter;

                this._Filter = AdvFilterConvertor.GetAdvFilter(DataProvider.VideoPlayBackManager.AdvReportFilters, this._Filter);
            }
            catch
            {
                _Filter = new DBFilter();
            }

            try
            {
                _TitleField = info.GetString("_TitleField");
            }
            catch
            {
                _TitleField = string.Empty;
            }

            try
            {
                _Title = info.GetString("_Title");
            }
            catch
            {
                _Title = string.Empty;
            }


            _RowIndicator = -1;
        }
Example #8
0
		public ServiceException( SerializationInfo info, StreamingContext context ) : base( info, context )
		{
			instancesCreated = info.GetInt32( "instancesCreated" );
			description = info.GetString( "description" );
			details = info.GetString( "details" );
			code = info.GetInt32( "code" );
		}
 protected ShaderException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     ShaderLog = info.GetString("ShaderLog");
     ShaderSource = info.GetString("ShaderSource");
     ShaderType = (ShaderType)info.GetInt32("ShaderType");
 }
 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;
     }
 }
Example #11
0
		protected LoggerException (SerializationInfo info,
					   StreamingContext context)
			: base (info, context)
		{
			errorCode = info.GetString ("errorCode");
			helpKeyword = info.GetString ("helpKeyword");
		}
 public QueueCacheMissException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Requested = info.GetString("Requested");
     Low = info.GetString("Low");
     High = info.GetString("High");
 }
Example #13
0
        protected StringData(SerializationInfo si, StreamingContext ctx)
        {
            //从流中得到合并的成员变量
            dataItemOne = si.GetString("First_Item").ToLower();
            dataItemTwo = si.GetString("Second_Item").ToLower();

        }
Example #14
0
 protected CacheNode(SerializationInfo info, StreamingContext context)
 {
     nodeId = info.GetString("nodeId");
     backupNodeId = info.GetString("backupNodeId");
     prevNodeId = info.GetString("prevNodeId");
     mySequence = info.GetInt32("mySequence");
 }
 internal UnitySerializationHolder(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     this.m_unityType = info.GetInt32("UnityType");
     if (this.m_unityType != 3)
     {
         if (this.m_unityType == 7)
         {
             this.m_declaringMethod = info.GetValue("DeclaringMethod", typeof(MethodBase)) as MethodBase;
             this.m_declaringType = info.GetValue("DeclaringType", typeof(Type)) as Type;
             this.m_genericParameterPosition = info.GetInt32("GenericParameterPosition");
             this.m_elementTypes = info.GetValue("ElementTypes", typeof(int[])) as int[];
         }
         else
         {
             if (this.m_unityType == 8)
             {
                 this.m_instantiation = info.GetValue("GenericArguments", typeof(Type[])) as Type[];
                 this.m_elementTypes = info.GetValue("ElementTypes", typeof(int[])) as int[];
             }
             this.m_data = info.GetString("Data");
             this.m_assemblyName = info.GetString("AssemblyName");
         }
     }
 }
	// Constructor.
	public MemberInfoSerializationHolder(SerializationInfo info,
									StreamingContext context)
			{
				if(info == null)
				{
					throw new ArgumentNullException("info");
				}
				memberType = (MemberTypes)(info.GetInt32("MemberType"));
				name = info.GetString("Name");
				signature = info.GetString("Signature");
				String assemblyName = info.GetString("AssemblyName");
				String className = info.GetString("ClassName");
				if(assemblyName == null || className == null)
				{
					throw new SerializationException
						(_("Serialize_StateMissing"));
				}
				Assembly assembly = FormatterServices.GetAssemblyByName
					(assemblyName);
				if(assembly == null)
				{
					throw new SerializationException
						(_("Serialize_StateMissing"));
				}
				containingType = FormatterServices.GetTypeFromAssembly
					(assembly, className);
			}
 protected MandrillException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Status = info.GetString("Status");
     Code = (int?) info.GetValue("Code", typeof (int?));
     Name = info.GetString("Name");
 }
        private FormCard(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            string strRecords = info.GetString("records");
            this.records = strRecords.BinaryDeserialize<FormRecordList>();
            foreach(FormRecord record in this.records)
            {
                record.OnDeserialization(this);
            }

            string strRelations = info.GetString("relations");
            this.relations = strRelations.BinaryDeserialize<TableRelationList>();
            if (this.relations.Count > 0)
            {
                FormRecord parentRecord = this.records.First();

                foreach (TableRelation rel in this.relations)
                {
                    DbKey parentKey = parentRecord.Keys[rel.ParentFK];

                    parentKey.PropertyChanged -= this.OnParentKeyValueChanged;
                    parentKey.PropertyChanged += this.OnParentKeyValueChanged;
                }
            }
        }
Example #19
0
 /// <inheritdoc/>
 protected InRangeException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     actual = info.GetString("Actual");
     high = info.GetString("High");
     low = info.GetString("Low");
 }
Example #20
0
 private GrantRoleStatement(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Role = info.GetString("Role");
     Grantee = info.GetString("Grantee");
     WithAdmin = info.GetBoolean("WithAdmin");
 }
Example #21
0
 private VideoFile(SerializationInfo info, DeserializeInfo di)
     : this(di.Server, di.Info, di.Type)
 {
     actors = info.GetValue("a", typeof(string[])) as string[];
       description = info.GetString("de");
       director = info.GetString("di");
       genre = info.GetString("g");
       title = info.GetString("t");
       try {
     width = info.GetInt32("w");
     height = info.GetInt32("h");
       }
       catch (Exception) {
       }
       var ts = info.GetInt64("du");
       if (ts > 0) {
     duration = new TimeSpan(ts);
       }
       try {
     bookmark = info.GetInt64("b");
       }
       catch (Exception) {
     bookmark = 0;
       }
       try {
     subTitle = info.GetValue("st", typeof(Subtitle)) as Subtitle;
       }
       catch (Exception) {
     subTitle = null;
       }
       initialized = true;
 }
Example #22
0
		// FIXME: I made it private temporarily, later we can change it to internal (but not protected)
		private InternalLoggerException (SerializationInfo info, StreamingContext context)
			: base (info, context)
		{
			buildEventArgs = (BuildEventArgs) info.GetValue ("BuildEventArgs", typeof (BuildEventArgs));
			errorCode = info.GetString ("ErrorCode");
			helpKeyword = info.GetString ("HelpKeywordPrefix");
		}
		protected MissingMemberException (SerializationInfo info, StreamingContext context)
			: base (info, context)
		{
			ClassName = info.GetString ("MMClassName");
			MemberName = info.GetString ("MMMemberName");
			Signature = (byte[]) info.GetValue ("MMSignature", typeof(byte[]));
		}
	protected FileNotFoundException(SerializationInfo info,
									StreamingContext context)
			: base(info, context)
			{
				fileName = info.GetString("FileNotFound_FileName");
				fusionLog = info.GetString("FileNotFound_FusionLog");
			}
Example #25
0
        /// <summary>
        /// Initializes a new instance of the ProxyObjectReference class.
        /// </summary>
        /// <param name="info">The <see cref="SerializationInfo"/> class that contains the serialized data.</param>
        /// <param name="context">The <see cref="StreamingContext"/> that describes the serialization state.</param>
        protected ProxyObjectReference(SerializationInfo info, StreamingContext context)
        {
            // Deserialize the base type using its assembly qualified name
            string qualifiedName = info.GetString("__baseType");
            _baseType = Type.GetType(qualifiedName, true, false);

            // Rebuild the list of interfaces
            List<Type> interfaceList = new List<Type>();
            int interfaceCount = info.GetInt32("__baseInterfaceCount");
            for (int i = 0; i < interfaceCount; i++)
            {
                string keyName = string.Format("__baseInterface{0}", i);
                string currentQualifiedName = info.GetString(keyName);
                Type interfaceType = Type.GetType(currentQualifiedName, true, false);

                interfaceList.Add(interfaceType);
            }

            // Reconstruct the proxy
            ProxyFactory factory = new ProxyFactory();
            Type proxyType = factory.CreateProxyType(_baseType, interfaceList.ToArray());
            _proxy = (IProxy)Activator.CreateInstance(proxyType);

            IInterceptor interceptor = (IInterceptor)info.GetValue("__interceptor", typeof(IInterceptor));
            _proxy.Interceptor = interceptor;
        }
Example #26
0
        /// <summary>
        /// Serialization constructor required for <see cref="ISerializable"/>; reads connection data from <paramref name="info"/>.
        /// </summary>
        /// <param name="info">Serialization store that we are going to read our data from.</param>
        /// <param name="context">Streaming context to use during the deserialization process.</param>
        protected RdpConnection(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            Animations = info.GetBoolean("Animations");
            AudioMode = info.GetValue<AudioMode>("AudioMode");
            ColorDepth = info.GetInt32("ColorDepth");
            ConnectClipboard = info.GetBoolean("ConnectClipboard");
            ConnectDrives = info.GetBoolean("ConnectDrives");
            ConnectPrinters = info.GetBoolean("ConnectPrinters");
            DesktopBackground = info.GetBoolean("DesktopBackground");
            DesktopComposition = info.GetBoolean("DesktopComposition");
            DesktopHeight = info.GetInt32("DesktopHeight");
            DesktopWidth = info.GetInt32("DesktopWidth");
            FontSmoothing = info.GetBoolean("FontSmoothing");
            KeyboardMode = info.GetValue<KeyboardMode>("KeyboardMode");
            PersistentBitmapCaching = info.GetBoolean("PersistentBitmapCaching");
            RecordingMode = info.GetValue<RecordingMode>("RecordingMode");
            VisualStyles = info.GetBoolean("VisualStyles");
            WindowContentsWhileDragging = info.GetBoolean("WindowContentsWhileDragging");
            ConnectToAdminChannel = info.GetBoolean("ConnectToAdminChannel");

            UseTSProxy = info.GetBoolean("UseTSProxy");
            ProxyName = info.GetString("ProxyName");
            ProxyUserName = info.GetString("ProxyUserName");

            string encryptedProxyPassword = info.GetString("ProxyPassword");
            if (!String.IsNullOrEmpty(encryptedProxyPassword))
            {
                EncryptedPassword = encryptedProxyPassword;
            }
        }
		MemberInfoSerializationHolder(SerializationInfo info, StreamingContext ctx)
		{
			string assemblyName;
			string typeName;

			assemblyName = info.GetString("AssemblyName");
			typeName = info.GetString("ClassName");

			_memberName = info.GetString("Name");
			_memberSignature = info.GetString("Signature");
			_memberType = (MemberTypes) info.GetInt32("MemberType");

#if NET_2_0
			try {
				_genericArguments = null;

				// FIXME: this doesn't work at present. It seems that
				// ObjectManager doesn't cope with nested IObjectReferences.
				// _genericArguments = (Type[]) info.GetValue("GenericArguments", typeof(Type[]));
			} catch (SerializationException) {
				// expected (old NET_1_0 protocol)
			}
#endif
			// Load type
			Assembly asm = Assembly.Load(assemblyName);

			_reflectedType = asm.GetType(typeName, true, true);
		}
 private OperationNotFoundException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _operationName = info.GetString("operationName");
     _className = info.GetString("className");
     _objectName = info.GetString("objectName");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericBusinessException"/> class.
 /// </summary>
 /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
 /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
 /// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
 public GenericBusinessException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _data = (IDictionary)info.GetValue("_data", typeof(IDictionary));
     _stackTrace = info.GetString("_stackTrace");
     _type = info.GetString("_type");
 }
Example #30
0
 public RevokeRoleStatement(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Grantee = info.GetString("Grantee");
     RoleName = info.GetString("Role");
     Admin = info.GetBoolean("Admin");
 }
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            typeof(Point).GetField("X").SetValue(obj, info.GetString("X"));
            typeof(Point).GetField("Y").SetValue(obj, info.GetString("Y"));

            return null;
        }
Example #32
0
 protected ErrorDetails(SerializationInfo info, StreamingContext context)
 {
     this._message = "";
     this._recommendedAction = "";
     this._message = info.GetString("ErrorDetails_Message");
     this._recommendedAction = info.GetString("ErrorDetails_RecommendedAction");
 }
Example #33
0
 protected OpenCVException(System.Runtime.Serialization.SerializationInfo info,
                           System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
     Status   = (ErrorCode)info.GetInt32(nameof(Status));
     FuncName = info.GetString(nameof(FuncName));
     FileName = info.GetString(nameof(FileName));
     ErrMsg   = info.GetString(nameof(ErrMsg));
     Line     = info.GetInt32(nameof(Line));
 }
Example #34
0
 protected BaseVBAScriptTask(System.Runtime.Serialization.SerializationInfo s, System.Runtime.Serialization.StreamingContext c)
 {
     m_runningtime   = s.GetInt32("RunningTime");
     m_errortime     = s.GetInt32("ErrorTime");
     m_domainGUID    = s.GetString("DomainGUID");
     m_taskchainGUID = s.GetString("TaskChainGUID");
     m_timestamp     = (DateTime)s.GetValue("TimeStamp", m_timestamp.GetType());
     m_taskstatus    = (TaskStatus)s.GetValue("Status", m_taskstatus.GetType());
     m_vbaobjs       = (Dictionary <string, IVBAObject>)s.GetValue("VBAObjects", m_vbaobjs.GetType());
 }
 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;
     }
 }
Example #36
0
 /// <summary>
 /// Serialization constructor.
 /// </summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected DebugMonitorException(
     System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     ActionName = info.GetString("ActionName");
 }
Example #37
0
 public ReElement(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _Value = info.GetString("_Value");
     }
     catch
     {
         _Value = string.Empty;
     }
     try
     {
         _Frequence = info.GetInt32("_Frequence");
     }
     catch
     {
         _Frequence = 0;
     }
     try
     {
         _FilterType = (Webb.Data.FilterTypes)info.GetValue("_FilterType", typeof(Webb.Data.FilterTypes));
     }
     catch
     {
         _FilterType = FilterTypes.NumGreaterOrEqual;
     }
     try
     {
         _FollowedOperand = (Webb.Data.FilterOperands)info.GetValue("_FollowedOperand", typeof(Webb.Data.FilterOperands));
     }
     catch
     {
         _FollowedOperand = FilterOperands.Or;
     }
 }
Example #38
0
 protected MyCustomException(
     System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
     Value1 = info.GetInt32("v1");
     Value2 = info.GetString("v2");
 }
Example #39
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();
     }
 }
 /// <summary>
 /// Inicializa una nueva instancia de UsuarioNoActivoException
 /// </summary>
 protected UsuarioNoActivoException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     if (info != null)
     {
         _NombreUsuario = info.GetString("_NombreUsuario");
     }
 }
 protected PdftopngsException(
     System.Runtime.Serialization.SerializationInfo serializationInfo,
     System.Runtime.Serialization.StreamingContext streamingContext
     )
     : base(serializationInfo, streamingContext)
 {
     ErrorCode    = serializationInfo.GetInt32("ErrorCode");
     ErrorMessage = serializationInfo.GetString("ErrorMessage");
 }
Example #42
0
 public WizardCustomStyles(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _StyleName = info.GetString("_StyleName");
     }
     catch
     {
         _StyleName = string.Empty;
     }
     try
     {
         _Image = (System.Drawing.Image)info.GetValue("_Image", typeof(System.Drawing.Image));
     }
     catch
     {
     }
     try
     {
         _NoWaterMarkImage = (System.Drawing.Image)info.GetValue("_NoWaterMarkImage", typeof(System.Drawing.Image));
     }
     catch
     {
     }
     try
     {
         _ExcontrolStyles = (Webb.Reports.ExControls.Styles.ExControlStyles)info.GetValue("_ExcontrolStyles", typeof(Webb.Reports.ExControls.Styles.ExControlStyles));
     }
     catch
     {
     }
     try
     {
         templateType = (Webb.Reports.ReportWizard.WizardInfo.TemplateType)info.GetValue("templateType", typeof(Webb.Reports.ReportWizard.WizardInfo.TemplateType));
     }
     catch
     {
     }
     try
     {
         _SerializableWatermark = (Webb.Reports.SerializableWatermark)info.GetValue("_SerializableWatermark", typeof(Webb.Reports.SerializableWatermark));
     }
     catch
     {
     }
 }
Example #43
0
 public AnalyImage(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _FileName = info.GetString("_FileName");
     }
     catch
     {
         _FileName = string.Empty;
     }
     try
     {
         _Image = (System.Drawing.Image)info.GetValue("_Image", typeof(System.Drawing.Image));
     }
     catch
     {
         _Image = null;
     }
 }
Example #44
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;
     }
 }
Example #45
0
 public UserLevel(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     try
     {
         _Name = info.GetString("_Name");
     }
     catch
     {
         _Name = "Custom";
     }
     try
     {
         _Rights = (Webb.Data.ProductRight)info.GetValue("_Rights", typeof(Webb.Data.ProductRight));
     }
     catch
     {
         _Rights = (ProductRight)31;
     }
 }
 private JsonParserException(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
 {
     Position    = info.GetInt32("$Position");
     ContextText = info.GetString("$ContextText");
     Reason      = info.GetString("$Reason");
 }
Example #47
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;
     }
 }
Example #48
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;
     }
 }
Example #49
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();
            }
        }
Example #50
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 public MediaStream(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     m_type = info.GetString("ty");
     m_name = info.GetString("tn");
 }
Example #51
0
 protected SmbScannerException(System.Runtime.Serialization.SerializationInfo info,
                               System.Runtime.Serialization.StreamingContext context) : base(info, context)
 {
     this.Server = info.GetString("Server");
 }
Example #52
0
        public HorizontalGridData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
            try
            {
                _SortingField = info.GetString("_SortingByField");
            }
            catch
            {
                _SortingField = string.Empty;
            }

            try
            {
                _SortingBy = (SortingByTypes)info.GetValue("_SortingByType", typeof(SortingByTypes));
            }
            catch
            {
                _SortingBy = SortingByTypes.DateTime;
            }

            try
            {
                _Sorting = (SortingTypes)info.GetValue("_SortingType", typeof(SortingTypes));
            }
            catch
            {
                _Sorting = SortingTypes.Descending;
            }

            try
            {
                _FieldTitle = info.GetString("_FieldTitle");
            }
            catch
            {
                _FieldTitle = string.Empty;
            }

            try
            {
                _UnitsTitle = info.GetString("_UnitsTitle");
            }
            catch
            {
                _UnitsTitle = string.Empty;
            }

            try
            {
                _TopCount = info.GetInt32("_TopCount");
            }
            catch
            {
                _TopCount = 7;
            }

            try
            {
                _DateFormat = info.GetString("_DateFormat");
            }
            catch
            {
                _DateFormat = @"M/d/yy";
            }
        }
Example #53
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;
     }
 }
Example #54
0
 protected DuplicateToolkitException(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     ResourceReferenceProperty = info.GetString("ResourceReferenceProperty");
 }
Example #55
0
 public PortDescriptor(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     _key         = info.GetString("Key");
     _description = info.GetString("Description");
     _offset      = info.GetInt32("Offset");
 }
 protected CustomHotKey(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     Name = info.GetString("Name");
 }
Example #57
0
 public PortMap(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     _key             = info.GetString("Key");
     _description     = info.GetString("Description");
     _portDescriptors = (PortDescriptorCollection)info.GetValue("PortDescriptors", typeof(PortDescriptorCollection));
 }
Example #58
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();
     }
 }