示例#1
0
 private void ImportTrack(Track track)
 {
     Clear();
     Playlist.AddTrack(track);
     Project.AddTrack(track);
     PartEditor.DrawNotes();
     InitElements();
 }
示例#2
0
        private void New()
        {
            TransitionTool.Current.Load(Settings.Current.TransitionTool);
            Project = new Project(SingerManager.DefaultSinger);
            SetProject();
            var track = Project.AddTrack();
            var part  = track.AddPart();

            Playlist.AddTrack(track);
            PartEditor.Part = part;
            PartEditor.DrawPart();
            PartEditor.DrawNotes();
            InitElements();
            SetPosition();
        }
示例#3
0
        private void Open(string dir)
        {
            New();
            return;

            Clear();
            var xmlReader = XmlReader.Create(new StringReader(dir));

            File.ReadAllText(dir);
            Project       = new Project(SingerManager.DefaultSinger);
            Project.Dir   = dir;
            Project.IsNew = false;

            // temp
            var track = Project.AddTrack();

            Playlist.AddTrack(track);
            PartEditor.Part = track.Parts[0];
            // endtemp

            // Settings.LastFile = dir;
            PartEditor.DrawNotes();
            InitElements();
        }