Beispiel #1
0
 public void GenerateGbsFile()
 {
     try
     {
         var coaGenerator = new CoatOfArmsTest();
         var coa = coaGenerator.ShapeTest();
         var saver = new GbsManager();
         saver.SaveAsGbs(coa, FilePathTest);
         Assert.IsTrue(File.Exists(FilePathTest), "the file have not been created");
     }
     catch (Exception ex)
     {
         Assert.Fail("Exception while saving : " + ex.Message);
     }
 }
Beispiel #2
0
 public void SaveThisFile(String fileName, bool checkFormat = true)
 {
     var saver = new GbsManager();
     saver.SaveAsGbs(RootCoatOfArm.ConvertToCoatOfArms(), fileName, checkFormat);
     FullFileName = fileName;
     FileName = Path.GetFileNameWithoutExtension(fileName);
     //sauvegarde des fichiers recents - sous traités
     GlobalApplicationViewModel.GetApplicationViewModel.SaveOpenedOrSavedFileAsRecent(fileName);
 }