Beispiel #1
0
 public void loadOrInitFile()
 {
     try
     {
         if (File.Exists(file_name))
         {
             inventory.load(file_name);
         }
         else
         {
             inventory.save(file_name);
         }
     }
     catch (Exception exc)
     {
         printError("Error while loading or initializing inventorx file", exc);
         Application.Exit();
     }
 }