Exemplo n.º 1
0
        public static void SaveFileAppearances(Appearances appearances, string path)
        {
            SerializationWriter SW = new SerializationWriter(path);

            SW.Start("Info");

            SW.WriteType(appearances);
            appearances.Save(SW);

            SW.End();
        }
Exemplo n.º 2
0
        public static Appearances LoadFileAppearances(string path)
        {
            SerializationReader SR = new SerializationReader(path);

            SR.Read();
            SR.ReadDeclaration();
            SR.ReadStartElement();

            Appearances appearances = SR.ReadType() as Appearances;

            appearances.Load(SR);

            SR.Close();
            return(appearances);
        }