Beispiel #1
0
        static public ApollonInputFileFacade Create()
        {
            ApollonInputFileFacade facade = new ApollonInputFileFacade(new datamodel.ApollonInputFileImpl());

            facade.Checkout();
            return(facade);
        }
Beispiel #2
0
 static public ApollonInputFileFacade Load(string filename)
 {
     try
     {
         datamodel.ApollonInputFileImpl         impl       = new datamodel.ApollonInputFileImpl();
         System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(impl.GetType());
         System.IO.StreamReader reader = new System.IO.StreamReader(filename);
         impl = (datamodel.ApollonInputFileImpl)serializer.Deserialize(reader);
         ApollonInputFileFacade facade = new ApollonInputFileFacade(impl);
         facade.Checkout();
         reader.Close();
         return(facade);
     }
     catch (System.Exception ex)
     {
         UnityEngine.Debug.LogError("<color=red>Error: </color> ApollonInputFileController::Load(" + filename + ") [" + ex.Message + "]");
         return(null);
     }
 } /* Load() */