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