Exemple #1
0
        public static void init(string filename = null)
        {
            if (filename == null)
            {
                filename = "Data\\MCSettings.xml";
            }
            MCSettings settings = XMLSer <MCSettings> .fromXML(filename);

            Single = settings;
        }
Exemple #2
0
        public static BackupClass.BackupClass Backup(string File)
        {
            BackupClass.BackupClass Back = XMLSer <BackupClass.BackupClass> .Deserializator(File);

            if (Back == null)
            {
                Back = new BackupClass.BackupClass();
            }
            return(Back);
        }