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); } }
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); }