Exemple #1
0
        internal static void RestoreBrushes(IPersistObjFactory objFactory,
                                            BinaryReader reader, PersistContext ctx)
        {
            Brush brush;
            int   count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                brush = (Brush)ctx.loadObject();
                _brushes.Add(brush);
            }
        }
Exemple #2
0
        internal PersistContext(Stream stream, IPersistObjFactory factory)
        {
            objIds       = new HybridDictionary();
            objRefs      = new HybridDictionary();
            idObjs       = new HybridDictionary();
            references   = new HybridDictionary();
            this.stream  = stream;
            this.factory = factory;
            fmt          = new BinaryFormatter();
            fmt.Binder   = new DeserializationHack();

            nextId = 1;
        }
Exemple #3
0
		internal PersistContext(Stream stream, IPersistObjFactory factory)
		{
			objIds = new HybridDictionary();
			objRefs = new HybridDictionary();
			idObjs = new HybridDictionary();
			references = new HybridDictionary();
			this.stream = stream;
			this.factory = factory;
			fmt = new BinaryFormatter();
			fmt.Binder = new DeserializationHack();

			nextId = 1;
		}
Exemple #4
0
		internal static void RestoreBrushes(IPersistObjFactory objFactory,
			BinaryReader reader, PersistContext ctx)
		{
			Brush brush;
			int count = reader.ReadInt32();

			for(int i = 0; i < count; i++)
			{
				brush = (Brush)ctx.loadObject();
				_brushes.Add(brush);
			}
		}