Exemplo n.º 1
0
 public void ReadConfig()
 {
     try
     {
         config = (HlaeConfig)Common.XmlFileDeserialize(System.IO.Path.GetDirectoryName(Config.Settings.HlaeExeFullPath) + "\\" + configFileName, typeof(HlaeConfig));
     }
     catch (Exception)
     {
         config = new HlaeConfig();
     }
 }
Exemplo n.º 2
0
        static public void Initialise(String _programPath, String _fileName)
        {
            programPath = _programPath;
            fileName    = _fileName;

            operations = new List <FileOperation>();

            String configFullPath = programPath + "\\" + fileName;

            if (!File.Exists(configFullPath))
            {
                return;
            }

            // deserialize
            operations = (List <FileOperation>)Common.XmlFileDeserialize(configFullPath, typeof(List <FileOperation>), new Type[] { typeof(FileMoveOperation), typeof(FileDeleteOperation), typeof(ExtractZipFolderOperation) });
        }