Choreoh.DanceRoutine.DanceRoutine C# (CSharp) Method

DanceRoutine() public method

public DanceRoutine ( String filename ) : System
filename String
return System
        public DanceRoutine(String filename)
        {
            name = filename;
            saveName = getSaveDestinationName(filename);
            saveDestinationFolder = getSaveDestinationFolder(filename);
            if (saveAlreadyExists(filename))
            {
                throw new Exception("Should be loading. Save already exists.");
            }
            else
            {
                segments = new Dictionary<int, DanceSegment>();
                comments = new Dictionary<DanceSegment, String>();
                guid = Guid.NewGuid();

                Directory.CreateDirectory(saveDestinationFolder);
            }
        }