Exemplo n.º 1
0
        public static LightGroup CreateFromLimitlessLampFile(string fileName)
        {
            ProjectConfigModel projectConfigModel = new ProjectConfigModel();

            XmlSerializerBusiness.Load(ref projectConfigModel, "Config/project.xml");
            return(FileBusiness.CreateInstance().ReadLimitlessLampFile(AppDomain.CurrentDomain.BaseDirectory + @"Project\" + projectConfigModel.Path + @"\LimitlessLamp\" + fileName));
        }
Exemplo n.º 2
0
        public static LightGroup CreateFromLightScriptFile(string fileName, string stepName)
        {
            ProjectConfigModel projectConfigModel = new ProjectConfigModel();

            XmlSerializerBusiness.Load(ref projectConfigModel, "Config/project.xml");
            String midPath = AppDomain.CurrentDomain.BaseDirectory + @"Project\" + projectConfigModel.Path + @"\_Cache\_" + fileName.Substring(0, fileName.LastIndexOf('.')) + ".mid";

            if (stepName.Equals(String.Empty) && File.Exists(midPath))
            {
                return(FileBusiness.CreateInstance().ReadMidiFile(midPath));
            }
            return(ScriptFileBusiness.FileToLight(AppDomain.CurrentDomain.BaseDirectory + @"Project\" + projectConfigModel.Path + @"\LightScript\" + fileName, stepName));
        }