예제 #1
0
 public void UpdateViewNameForSequence(string editorRegionName, string path, SequenceFile sequenceFile)
 {
     if (path != sequenceFile.Path)
     {
         var newView      = new SequenceFile(path, sequenceFile.Sequence);
         var editorRegion = regionManager.Regions[editorRegionName];
         editorRegion.Remove(sequenceFile);
         editorRegion.Add(newView, path);
         editorRegion.Activate(newView);
     }
 }
예제 #2
0
        public void OpenSequenceInRegion(string editorRegionName, string path, SequenceViewModel sequence)
        {
            var editorRegion = regionManager.Regions[editorRegionName];

            if (editorRegion.GetView(path) != null)
            {
                editorRegion.Activate(editorRegion.GetView(path));
                return;
            }

            var view = new SequenceFile(path, sequence);

            editorRegion.Add(view, path);
            editorRegion.Activate(view);
        }